| View previous topic :: View next topic |
| Author |
Message |
fonatsirt Voice
Joined: 27 Apr 2006 Posts: 1 Location: France
|
Posted: Thu Apr 27, 2006 7:23 pm Post subject: Eggdrops and ip |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Apr 28, 2006 1:17 am Post subject: |
|
|
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 |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Fri Apr 28, 2006 3:37 am Post subject: |
|
|
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 |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Fri Apr 28, 2006 8:56 am Post subject: |
|
|
| 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 |
|
 |
ryal Voice
Joined: 12 May 2005 Posts: 35
|
Posted: Fri Apr 28, 2006 12:47 pm Post subject: |
|
|
| Thx a lot guys, it worked like a charm! |
|
| Back to top |
|
 |
|