<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/4438" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-06-11T14:11:05-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/4438</id>

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-11T14:11:05-04:00</updated>

		<published>2003-06-11T14:11:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21684#p21684</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21684#p21684"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21684#p21684"><![CDATA[
I found this and it seems to work so if anyone else would like it .. <br>The var is $MyIP incase you shouldn't know <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><div class="codebox"><p>Code: </p><pre><code>set MyIP ""foreach a {a b c d e f g h i j k} {    catch {set external [socket $a.root-servers.net 53]set MyIP [lindex [fconfigure $external -sockname] 0]close $external  } if { ![string equal $MyIP ""] } { break }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Jun 11, 2003 2:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-07T13:18:34-04:00</updated>

		<published>2003-06-07T13:18:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21414#p21414</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21414#p21414"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21414#p21414"><![CDATA[
result = ip 0.0.0.0<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat Jun 07, 2003 1:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-07T12:12:29-04:00</updated>

		<published>2003-06-07T12:12:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21413#p21413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21413#p21413"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21413#p21413"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set sock [socket -async 1.2.3.4 5]set ip [lindex [fconfigure $sock -sockname] 0]close $sock</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Jun 07, 2003 12:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-06-07T11:35:36-04:00</updated>

		<published>2003-06-07T11:35:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21411#p21411</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21411#p21411"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21411#p21411"><![CDATA[
Some while ago i got this form you guys verry greatfull for it but everytime i get a pc with a lan ip like 192.168 witch is c class ip aswell , ...<br><br>it doesn't show the internet ip but the lan ip ...<br><div class="codebox"><p>Code: </p><pre><code>set s [socket -server "" -myaddr [info hostname] 0]; set ip [lindex [fconfigure $s -sockname] 0] close $s</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat Jun 07, 2003 11:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-05-26T06:59:05-04:00</updated>

		<published>2003-05-26T06:59:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20687#p20687</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20687#p20687"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20687#p20687"><![CDATA[
oh my mestake see what you mean <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> sorry hehe<br><br>i see what you mean tnx verry mutch<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon May 26, 2003 6:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-26T06:57:46-04:00</updated>

		<published>2003-05-26T06:57:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20686#p20686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20686#p20686"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20686#p20686"><![CDATA[
If you want to use a global variable inside a proc you have to import it or address it directly. But this particular value is better suited for creation on-the-fly when you need it...<br><br>make it a proc and call that proc where ever you need the ip<br><div class="codebox"><p>Code: </p><pre><code>proc myIP {} {    set s [socket -server "" -myaddr [info hostname] 0];     set ip [lindex [fconfigure $s -sockname] 0]     close $s    set ip}</code></pre></div>then insert [myIP] where you want the ip to appear<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon May 26, 2003 6:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-05-26T06:54:24-04:00</updated>

		<published>2003-05-26T06:54:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20685#p20685</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20685#p20685"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20685#p20685"><![CDATA[
hmm no i just put it in top of the script like a var<br>example<br><br>bind ...<br>bind ...<br><br>set ...<br>set your script<br><br>proc ...<br>proc ...<br><br>so what do i exactly do with it ? not sur what you mean ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon May 26, 2003 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-26T05:24:15-04:00</updated>

		<published>2003-05-26T05:24:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20681#p20681</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20681#p20681"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20681#p20681"><![CDATA[
<blockquote class="uncited"><div>[09:03]Tcl error [send_ipinfo]: can't read "ip": no such variable</div></blockquote>Did you create/import the variable inside the proc?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon May 26, 2003 5:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-05-26T05:11:10-04:00</updated>

		<published>2003-05-26T05:11:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20680#p20680</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20680#p20680"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20680#p20680"><![CDATA[
this works but crashed every time when i rehash, on startup np but on rehash crash .. ?<br><br><div class="codebox"><p>Code: </p><pre><code>set myip [regexp -inline {\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}} [exec ipconfig] ]</code></pre></div>the above is one line<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon May 26, 2003 5:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-05-26T05:08:53-04:00</updated>

		<published>2003-05-26T05:08:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20679#p20679</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20679#p20679"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20679#p20679"><![CDATA[
if that is the case i did it and still won't resolve the var $ip in a script ??<br><br>on trigger i get this <br><br>[09:03]Tcl error [send_ipinfo]: can't read "ip": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon May 26, 2003 5:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-26T05:04:57-04:00</updated>

		<published>2003-05-26T05:04:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20678#p20678</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20678#p20678"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20678#p20678"><![CDATA[
Put it where ever you like. You asked for a variable containing the ip. The example i showed you should provide you with one.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon May 26, 2003 5:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-05-26T04:49:56-04:00</updated>

		<published>2003-05-26T04:49:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20674#p20674</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20674#p20674"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20674#p20674"><![CDATA[
sorry i am kinda new to this but is it in the config script (eggdrop.conf) or did i understand wrong ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon May 26, 2003 4:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-25T10:02:40-04:00</updated>

		<published>2003-05-25T10:02:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20630#p20630</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20630#p20630"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20630#p20630"><![CDATA[
You use this in the place of the normal "set ip" information.<br><br>Have you even tried?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun May 25, 2003 10:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-05-24T19:13:11-04:00</updated>

		<published>2003-05-24T19:13:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20601#p20601</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20601#p20601"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20601#p20601"><![CDATA[
how do i use this i tryed $ip but .. ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat May 24, 2003 7:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-23T12:11:26-04:00</updated>

		<published>2003-05-23T12:11:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20563#p20563</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20563#p20563"/>
		<title type="html"><![CDATA[How do i resolve my ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20563#p20563"><![CDATA[
this<div class="codebox"><p>Code: </p><pre><code>set s [socket -server "" -myaddr [info hostname] 0];set ip [lindex [fconfigure $s -sockname] 0]close $s</code></pre></div>might work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri May 23, 2003 12:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
