Post by (PeteCresswell)I tried the ipAddress utility and the UI/window is exactly what I'm
looking for: a small, unobtrusive floating window on the desktop, no
borders, no buttons, just the address.
Problem is that it displays the PC's LAN IP addr instead of the router's
WAN IP addr.
Does anybody know of something like this?
Its not a floating window, but maybe the SysInternals tool BGInfo
might help. It can display various bits of system information on the
desktop wallpaper. It is available from here: ->
http://technet.microsoft.com/en-us/sysinternals/bb897557.aspx
However, by default BGInfo does not automatically display the external
IP address. To get that, you will have to add the functionality
yourself. Fortunately, this isn't too hard to do.
(The instructions below were written by an "n8felton" and leeched from
the following website: ->
http://forum.sysinternals.com/display-dynamic-wan-ip-address_topic20527.html
-----------------
The easiest way to do this is to create a custom field and then use a
VB Script to populate this field.
1. Create a VBScript named "WAN_IP.vbs" in the same directory as your
"BGInfo.exe" application. The contents of this VBScript should be:
Function WAN_IP
Set objxmlHTTP = CreateObject("Microsoft.XMLHTTP")
Call objxmlHTTP.open("get", "http://checkip.dyndns.org", False)
objxmlHTTP.Send()
strHTMLText = objxmlHTTP.ResponseText
Set objxmlHTTP = Nothing
If strHTMLText <> "" Then
varStart = InStr(1, strHTMLText, "Current IP Address:",
vbTextCompare) + 19
If varStart Then varStop = InStr(varStart,
strHTMLText,"</body>", vbTextCompare)
If varStart And varStop Then strIP = Mid(strHTMLText, varStart,
varStop - varStart)
Else
strIP = "Unavailable"
End If
WAN_IP = Trim(strIP)
End Function
Echo WAN_IP
2. Open BGInfo and load the configuration file you are using (e.g.
default.bgi). Click the "Custom..." button on the right side under the
list of fields.
3. Click the "New..." button.
4. Set your identifier to "WAN_IP" and then select the "VB Script
file" radio button and click the "Browse" button that is now available
and select the "WAN_IP.vbs" script.
5. Click the "OK" buttons till you get back to the original interface
for the BGInfo application.
6. Scroll down the list of fields until you find the "WAN_IP" field in
the list, select it and click the "<- Add" button.
7. Click the "Preview" button and if all goes well, you should now see
the WAN IP address on your desktop.
-----------------
I checked the script and it works. Note that this script depends on an
external website (dyndns.org) to get the external IP, so check to make
sure it is okay for you to use their services like this or create your
own, especially if you are using it for a commercial entity (dyndns
may not like if several hundred requests flood in every morning from
the same IP when all the workers boot their computers ;-)