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.

NAT-IP Script

Old posts that have not been replied to for several years.
Locked
a
aristosv

NAT-IP Script

Post by aristosv »

My ISP keeps changing my adsl ip address, and they also use NAT, so that they can give fake ip's.

I need a tcl script that will detect my real internet ip address and change it in the config file, everytime it changes.

Possible?
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

no try ur lan ip maybe that helps ..?

also if ur dsl isp keeps disconnectiong u .. then your eggdrop disconnects als well right ??

cause i got a script that resolves ur ip on connect each time just not sur u can use this to set ur nat-ip ..

don't hava spefic script here right now but use this one it has that

http://ftp.ofloo.net/pub/scripts/ip-to- ... tcl.tar.gz

use [MyIP] its case sensitve i think cause when u use [myip] it will return formated ip so try this set nat-ip "[MyIP]" it might crash .. almost sur it will but it might work ..

or u can do this depending on ur os of course ..

write ur ip to a txt file and make the bot rehash on connect or something .. what ever is needed to set the nat-ip set nat ip to

Code: Select all

proc readip {} {
  set rfile [open filename r]
  set MyIP [read $rfile]
  close $rfile
  return $MyIP
}

set nat-ip [readip]
i got something like that to bind my apache web server i made a tclsh script that runs the script on connect and parses the ip to host file ..

then i rehash my webserver so all vhosts work again ..
XplaiN but think of me as stupid
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

XplaiN but think of me as stupid
Locked