Running a ADSL router show ext IP Thread last updated on 2006-08-22 19:56:55

Posted by member 137045 on 2005-08-27 19:19:08

Running a ADSL router, I need to see the external IP, have this line in the theme I am using -:
\nIP Address : [ip]
this gives me my 194.168,1,* IP adress asigned by the router.

The router has an external ip, need this to connect to work network and Azureus programme, as the external changes every time I switch off / on the router I have to interogate its admin page for the address.

Its no big deal but would look cool if its on my desktop. (and it means I dont have to run samurize)Sorry for swearing...lol

Anyone know a quick fix to get it to show the external?

Posted by member 1 on 2005-08-27 21:28:43 link

You can't show the external of your router because your PC has no idea what it is.

Posted by member 262090 on 2005-08-27 21:41:36 link

Hmmm... Don't know if such a thing exits, but... I think that if you run a traceroute(pick any external address ie: yahoo.com) one of the jumps SHOULD be the external adress of your ADSL router. The posisition of the jump(jump number "x") should remain constant(unless you have some sort of funky internal network configuration). SO.... If you had a utility that would return the IP adress of jump number "x", from a traceroute, you'd be all set. If you can't find such a utility, you could always determine which jump number is your external router address, and just run a traceroute manually each time you need to check. Hope this helps!

Posted by member 248213 on 2005-08-28 02:59:43 link

cool idea lslive.

Posted by member 137045 on 2005-08-28 05:23:05 link

Devilboi & Islive_mercutio thanks for the feedback, I have 2 VBL scripts (getextip.vbl and allip.vbl) that run fine and will tell me what I want to know, the drawback is I need to load Samurize to run them. As I originaly said it not a big thing and opening the Admin pages for the router in Deepnet will provide me the IP, there are a good few web sites that will allso give me the info, but was just hoping I could run a scipt or adjust the Theme.rc to give me the info.

Info web sites-:
http://www.whatismyip.com - http://www.whatismyipaddress.com - http://www.showmyip.com, will run one of these as homepage on browser.

Posted by member 1949 on 2005-08-28 10:18:46 link

Use wazup.dll to parse the info on whatsmyip website...

Here try this
*NetLoadModule xlabel-3.4.1 load xlabel-3.4.1.dll
*NetLoadModule wazup-1.35

*Wazup ExternalIP
ExternalIPURL http://www.whatismyip.com/
ExternalIPLocalFile "$ConfigDir$Ip.html"
ExternalIPUpdateInterval 100
ExternalIPInputString "Your IP Is {%} WhatIsMyIP.com"
ExternalIPOutputString "My Current IP is {%1}"
ExternalIPEnabled true
ExternalIPOnChecked !Execute [!WazupSetUpdateInterval ExternalIP 900]
ExternalIPOnFailure !alert "It appears there is an error retriving your IP... Try and Recycle or Update Wazup Module!"
ExternalIPOnUpdated !alert "Your IP is Updated!"
ExternalIPDisplayOn ExternalIP_BG
ExternalIPsilent true

*Label ExternalIP_BG
ExternalIP_BGX "31"
ExternalIP_BGY "8"
ExternalIP_BGWidth "200"
ExternalIP_BGHeight "20"
ExternalIP_BGOnLeftClick !none
ExternalIP_BGFontColor "B2B2B2"
ExternalIP_BGBorderMethod "Sunken"
ExternalIP_BGSolidColors "000000"

Posted by member 137045 on 2005-08-28 18:36:33 link

Immortal thats awesome, off to try that now, what a fine chap (very British)

Posted by member 248213 on 2005-08-28 22:20:09 link

wicked!

Posted by member 137045 on 2005-08-29 13:06:04 link

Nearly there, got a box and an ext IP buuuuuut, get a cannot write to message and Litestep shut down. Code is magical but just needs a tweak on my machine (running server 03) the os is a bit of a stickler for paths and mem writes.

But fact remains awesome help from Immortal.

Posted by member 1949 on 2005-08-29 16:43:08 link

ExternalIPLocalFile "$ConfigDir$Ip.html"

I wonder if writing this file to your hard drive is the cause?
Another thing is !Alert message's
Does 03Server handle these well?

Posted by member 248213 on 2005-08-29 18:00:13 link

!Alerts are fine on 2k3, well I havent had any problems with them.

Posted by member 137045 on 2005-08-29 19:15:17 link

03 gets heavy handed and rather than work through just shuts down the "offending" prog, in this case Litestep, using task manager it starts up again no problem after I block out the IP get text, think this is 03 quirk more than your code.
The write to hard drive could be a cause but have no clue in how to get roubd that one, I tried to designate a "dump zone" and allocate temp memory status but did F"*k all to solve that little anomily. Hmmmm just love these vurtual chess sessions.lol

Posted by member 3800 on 2005-08-31 22:03:03 link

instead of writing to a local file, you could just save the value as an evar and then display that in a label. I wonder if that would help at all.

Posted by member 249268 on 2005-11-20 21:50:35 link

Hi I am trying to get tthis to work as well, but am getting the "IPOnFailure" message. I am wondering if this is due to my setup, and if there is anyway around it if that is the case.

I have a Cable Internet Gateway, (Motorola) connected to a Linksys Wire/less hub
I am trying to get this to work wirelessly on my Laptop. I have feeling that this probably wont work, but if it does, that would be Awesome
thanks.

Posted by member 12025 on 2005-11-21 06:51:39 link

NM. The solution: use a new xLabel!
!parseevars !alert %[online('www.whatismyip.org','/')]%
Tada! your IP as plain text, where you can do...whatever. For a label, set the text to "[online('www.whatismyip.org','/')]", and then set the update interval.

It leaves a bit to be desired for parsing, I'll grant, but for something this simple...well, it's simple. For the other sites, you could do a between escape around it, I think, or use LSLua or mzscript (both of which will be much faster at it if you're doing more).

/me bows to Andymon
It always pays to check the xLabel readme :).

Posted by member 1949 on 2005-11-21 06:56:05 link

Just try it like this:

*NetLoadModule xlabel-3.4.1 load xlabel-3.4.1.dll
*NetLoadModule wazup-1.35

*Wazup ExternalIP
ExternalIPURL http://www.whatismyip.com/
ExternalIPLocalFile "$ConfigDir$Ip.html"
ExternalIPUpdateInterval 100

this forum is eating the title and thats why its not working right....! I added spaces in them so just remove the spaces

ExternalIPInputString "< title >Your IP Is {%} WhatIsMyIP.com < /title >"

ExternalIPOutputString "My Current IP is {%1}"
ExternalIPEnabled true
ExternalIPOnChecked !Execute [!WazupSetUpdateInterval ExternalIP 900]
ExternalIPOnFailure !alert "It appears there is an error retriving your IP... Try and Recycle or Update Wazup Module!"
ExternalIPOnUpdated !alert "Your IP is Updated!"
ExternalIPDisplayOn ExternalIP_BG
ExternalIPsilent true

*Label ExternalIP_BG
ExternalIP_BGX "31"
ExternalIP_BGY "8"
ExternalIP_BGWidth "200"
ExternalIP_BGHeight "20"
ExternalIP_BGOnLeftClick !none
ExternalIP_BGFontColor "B2B2B2"
ExternalIP_BGBorderMethod "Sunken"

ExternalIP_BGSolidColors "000000"

Posted by member 249268 on 2005-11-21 11:14:28 link

Well, it is still not working, I decided to change the
ExternalIPsilent to Off and I received this

The following error occured during web-page-parsing:
User-specified substring not found


I assume the only place where the parsing is actually done, is in the ExternalIPInputString, but that looks ok
ExternalIPInputString "< title >Your IP Is {%} WhatIsMyIP.com< /title >"


obviously with the spaces taken out!
so any ideas?

Posted by member 1949 on 2005-11-21 14:39:41 link

< title >Whats My IP Address? Your IP is {%}< /title >

hehe the syntax was changed that's all...
update:
ExternalIPInputString
with above and remove spaces also!

Enjoy...

Posted by member 249268 on 2005-11-21 16:41:43 link

that did naught :-(

getting the same errors, is there another place that the syntax might be off?

Posted by member 39847 on 2005-11-28 15:48:44 link

That site isn't static. You would've seen that if you reloaded the page a few times. This means Immortal's code will ony work half the time. Use this instead: " ExternalIPInputString "displaycopy('{%}')" "

Posted by member 1949 on 2005-11-28 18:09:56 link

Your right Acid I never caught that... :)
Using that instead.

Thanks man!

Posted by member 12025 on 2005-11-29 00:38:19 link

Is there really a reason to use an extra module for this (wazup)?

Posted by member 1949 on 2005-11-29 12:21:49 link

The only reason Cerbie is I am using wazup to strip weather and another title for broadcasting new versions of a theme I am working on. So if wazup is loaded, why not use it.

Posted by member 321628 on 2006-04-27 13:55:04 link

so what should the code look like?!

Posted by member 248213 on 2006-08-22 19:05:43 link

Something like the contents of Immortal's code blocks up a few posts.

Posted by member 1949 on 2006-08-22 19:56:55 link

*NetLoadModule xlabel-3.4.1 load xlabel-3.4.1.dll
*NetLoadModule wazup-1.35

*Wazup ExternalIP
ExternalIPURL http://www.whatismyip.com/
ExternalIPLocalFile "$ConfigDir$Ip.html"
ExternalIPUpdateInterval 100

ExternalIPInputString "displaycopy('{%}')" "

ExternalIPOutputString "My Current IP is {%1}"
ExternalIPEnabled true
ExternalIPOnChecked !Execute [!WazupSetUpdateInterval ExternalIP 900]
ExternalIPOnFailure !alert "It appears there is an error retriving your IP... Try and Recycle or Update Wazup Module!"
ExternalIPOnUpdated !alert "Your IP is Updated!"
ExternalIPDisplayOn ExternalIP_BG
ExternalIPsilent true

*Label ExternalIP_BG
ExternalIP_BGX "31"
ExternalIP_BGY "8"
ExternalIP_BGWidth "200"
ExternalIP_BGHeight "20"
ExternalIP_BGOnLeftClick !none
ExternalIP_BGFontColor "B2B2B2"
ExternalIP_BGBorderMethod "Sunken"

ExternalIP_BGSolidColors "000000"