egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Eggdrops and ip

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
fonatsirt
Voice


Joined: 27 Apr 2006
Posts: 1
Location: France

PostPosted: Thu Apr 27, 2006 7:23 pm    Post subject: Eggdrops and ip Reply with quote

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?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Apr 28, 2006 1:17 am    Post subject: Reply with quote

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] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Fri Apr 28, 2006 3:37 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message MSN Messenger
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri Apr 28, 2006 8:56 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
ryal
Voice


Joined: 12 May 2005
Posts: 35

PostPosted: Fri Apr 28, 2006 12:47 pm    Post subject: Reply with quote

Thx a lot guys, it worked like a charm!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber