I need to have NAT-IP enabled to get my userfile sharing to work correctly. I have specified the main internet IP and all the bots linked and shared the userfile like they are supposed to. My problem is I have a dynamic IP not a fixed one and was wondering if there is a workaround so I will not need to keep changing the config file everytime my IP changes. I have got a DNS name from NO-IP as well and the router is updating their servers to keep it uptodate with my current IP. I was thinking maybe a TCL script would be possible? Any help would be appreciated. This is my last little problem then my BotNet will link 100%. Thanks to all that have helped throughout my previos posts as I wouldn't be at this stage now.
i think you can set my-hostname or something read the config file also if your on nat ip try and bind to the lan ip ..? if you don't got one use localhost .. its explained in config file i remember reading something about it in there.
thanks for the info. We created a TCL script to get my internet IP and have that update my NAT-IP and everythings working like a charm Been adding NetBots 4.09 to my bots and thats a great collection of scripts. Thanks for all the help.
thanks for the info. We created a TCL script to get my internet IP and have that update my NAT-IP and everythings working like a charm Been adding NetBots 4.09 to my bots and thats a great collection of scripts. Thanks for all the help.
Paul.
You should submit that script to the site! Others may find it useful
proc get-nat-ip {} {
set f [open "|/sbin/ifconfig -a"]
while {![eof $f]} {lappend x [gets $f]}
close $f
foreach line $x {
if [string match "*inet *" $line] {
set ip [lindex [split [string trim $line]] 1]
if [string match 127.0.0.* $ip] continue
if [string match 192.168.* $ip] continue
return $ip
}
}
}