This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Eggdrops and ip

Help for those learning Tcl or writing their own scripts.
Post Reply
f
fonatsirt
Voice
Posts: 1
Joined: Thu Apr 27, 2006 7:10 pm
Location: France

Eggdrops and ip

Post by fonatsirt »

Ok im having a little problem here:
i made a script which imply sending files
For this i needed to set up my ip in the .conf instead of the # set my-ip 127.0.0.1
But... my provider gives me a different ip after each connection, and changing the conf each time kinda bothers me.
Is there an automatic function or something which could provide the ip?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

no, there isn't

if you have set up some sort of DDNS (dynamic DNS), you could specify your hostname in the config and then use [myip]; it will be resolved to IP every time via your DDNS service

or you could write a module in C that enumerates network interfaces on your system and then interface it via Tcl (my guess is you won't be particularly excited about that, unless you are C and network programmer)
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

I am pretty sure setting the dyn dns as nat-ip was enough. I dont want to swear, but i believe it worked. A few days ago I checked up my-ip and it definitely resolves the DNS each use, so probably same is for nat-ip.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

Use one of the free dynamic dns services like www.no-ip.com. Then use eggdrop's my-hostname setting instead of the ip settings.
r
ryal
Voice
Posts: 35
Joined: Thu May 12, 2005 6:10 pm

Post by ryal »

Thx a lot guys, it worked like a charm!
Post Reply