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?
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
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.