<?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/503" />

	<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>2001-12-03T07:11:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2001-12-03T07:11:00-04:00</updated>

		<published>2001-12-03T07:11:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2371#p2371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2371#p2371"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2371#p2371"><![CDATA[
You can get the IP of your bot with the following code:<br><div class="codebox"><p>Code: </p><pre><code>proc getrealip {} {  binary scan [binary format I [myip]] cccc a b c d  return [format %d.%d.%d.%d [expr $a&amp;255] [expr $b&amp;255] [expr $c&amp;255] [expr $d&amp;255]]}</code></pre></div><div class="codebox"><p>Code: </p><pre><code></code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Mon Dec 03, 2001 7:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-03T04:33:00-04:00</updated>

		<published>2001-12-03T04:33:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2367#p2367</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2367#p2367"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2367#p2367"><![CDATA[
The command myip will return your ip.<br>example: putlog [myip]<p>Statistics: Posted by Guest — Mon Dec 03, 2001 4:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[RedAlert]]></name></author>
		<updated>2001-12-02T17:39:00-04:00</updated>

		<published>2001-12-02T17:39:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2344#p2344</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2344#p2344"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2344#p2344"><![CDATA[
This would be *extremely* ugly but if you're running Linux and you KNOW you are gonna use the IP from eth0, you could do something like<br><div class="codebox"><p>Code: </p><pre><code>set my-ip [exec /sbin/ifconfig eth0 | grep inet | head -1 | cut -d: -f2 | cut -d  -f1]</code></pre></div>which would set the IP using ifconfig (note that you could also do the manipulation of the output using TCL). Typically the if-everything-else-fails kind of solution...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=393">RedAlert</a> — Sun Dec 02, 2001 5:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-02T15:09:00-04:00</updated>

		<published>2001-12-02T15:09:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2340#p2340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2340#p2340"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2340#p2340"><![CDATA[
but how in earth am i gonna find out my IP with a dynamic IP then thru my bot??<br><br>Else, give me the hardway... Like a way that extracts the IP from eth0 on connect... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by Guest — Sun Dec 02, 2001 3:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-02T14:48:00-04:00</updated>

		<published>2001-12-02T14:48:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2338#p2338</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2338#p2338"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2338#p2338"><![CDATA[
Without "my-ip" being set in the config file, there are no simple ways to detect the IP of the machine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Dec 02, 2001 2:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-02T14:17:00-04:00</updated>

		<published>2001-12-02T14:17:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2337#p2337</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2337#p2337"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2337#p2337"><![CDATA[
ive set it up correctly for as far i can tell... It does connect to the network, accepts DCCs, all commands work fine... <br>And it doesnt say anywhere i have to set it myself...<br><br>Sorry admin for the new topic <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by Guest — Sun Dec 02, 2001 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-02T13:54:00-04:00</updated>

		<published>2001-12-02T13:54:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2331#p2331</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2331#p2331"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2331#p2331"><![CDATA[
No, this is the only variable that hold the IP - if this is empty, then you have not setup your bot correctly in the first place.<br><br>Read over your config file.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Dec 02, 2001 1:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-02T13:52:00-04:00</updated>

		<published>2001-12-02T13:52:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2330#p2330</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2330#p2330"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2330#p2330"><![CDATA[
is there another variable what holds the IP perhaps?<p>Statistics: Posted by Guest — Sun Dec 02, 2001 1:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-02T13:40:00-04:00</updated>

		<published>2001-12-02T13:40:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2329#p2329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2329#p2329"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2329#p2329"><![CDATA[
tried that... result was empty... :/<p>Statistics: Posted by Guest — Sun Dec 02, 2001 1:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2001-12-02T13:34:00-04:00</updated>

		<published>2001-12-02T13:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2328#p2328</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2328#p2328"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2328#p2328"><![CDATA[
${my-ip}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Sun Dec 02, 2001 1:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-02T13:16:00-04:00</updated>

		<published>2001-12-02T13:16:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2326#p2326</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2326#p2326"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2326#p2326"><![CDATA[
yes but the problem is the -...<br>if i do $[my-ip] it says no such command "my-ip"<br><br>without [] its nu such variable: $my<br><br>plz help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by Guest — Sun Dec 02, 2001 1:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-02T12:48:00-04:00</updated>

		<published>2001-12-02T12:48:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2325#p2325</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2325#p2325"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2325#p2325"><![CDATA[
in the script that dsplays the IP. Make sure the "my-ip" variable is global, and use it's value to refeer users.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Dec 02, 2001 12:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-02T12:12:00-04:00</updated>

		<published>2001-12-02T12:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2321#p2321</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2321#p2321"/>
		<title type="html"><![CDATA[How to get the IP of my bot?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2321#p2321"><![CDATA[
I need to grab the IP of my bot in TCL so it can refer you to the stats pages its generating... how?<br><br>thanks!<p>Statistics: Posted by Guest — Sun Dec 02, 2001 12:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
