Discussion:
Utility To Display WAN IP Address In Floating Window?
(too old to reply)
(PeteCresswell)
2014-05-08 14:33:54 UTC
Permalink
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?
--
Pete Cresswell
Mike Easter
2014-05-08 15:52:56 UTC
Permalink
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.
That IPAddress is developed by Castle Software
http://www.castlesoftware.biz/ipAddress.htm
Post by (PeteCresswell)
Problem is that it displays the PC's LAN IP addr instead of the router's
WAN IP addr.
Of course. The developer explains that at the link above; and also even
provides a link at the site to see the WAN address.

http://www.castlesoftware.biz/ip.htm
Post by (PeteCresswell)
Does anybody know of something like this?
The 'tool' would have to use some other outside reference source and
then put it into your favorite display. This outside reference
link/site creates a very simple text content http://www.icanhazip.com/

People have devised little scripts to fetch that content.

http://superuser.com/questions/165986/windows-command-that-returns-external-ip
Is there a command by which I can find my external IP of my router or
my NAT\DSL Router, etc., eliminating the need to visit whatsmyip.net or
similar.
--
Mike Easter
Charles Lindbergh
2014-05-08 15:56:29 UTC
Permalink
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?
I doubt this is what you want, but I have found the quickest, easiest way of
determining the WAN IP address is to simply perform a google search on "ip"
without the quotes.
David E. Ross
2014-05-08 19:14:48 UTC
Permalink
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?
The IP addreses of your PC and the router are both likely static. Thus,
any TraceRoute result should show both. Just trace to some known
outside domain. (In a Windows command window, type TRACERT.EXE and the
domain name.) The first entry is likely your nearest router. Save the
result in a text file for future reference.
--
David E. Ross

The Crimea is Putin's Sudetenland.
The Ukraine will be Putin's Czechoslovakia.
See <http://www.rossde.com/editorials/edtl_PutinUkraine.html>.
David E. Ross
2014-05-08 20:02:54 UTC
Permalink
Post by David E. Ross
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?
The IP addreses of your PC and the router are both likely static. Thus,
any TraceRoute result should show both. Just trace to some known
outside domain. (In a Windows command window, type TRACERT.EXE and the
domain name.) The first entry is likely your nearest router. Save the
result in a text file for future reference.
Note, however, that the router might not respond to pings, which is
needed for a TraceRoute operation. Also, TRACERT.EXE does not show the
originating IP address; thus, if your router does respond, it will be
the first entry.

When using a Web service for TraceRoute, often the results reflect the
trace from the Web server to the specified domain. In that case, trace
to the IP address of your PC. Then the router is the entry just before
your PC (if your router responds).
--
David E. Ross

The Crimea is Putin's Sudetenland.
The Ukraine will be Putin's Czechoslovakia.
See <http://www.rossde.com/editorials/edtl_PutinUkraine.html>.
Spalls Hurgenson
2014-05-09 15:53:16 UTC
Permalink
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 ;-)
Zaidy036
2014-05-09 20:05:54 UTC
Permalink
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?
Here is a WGET command that SETs the IP address into the variable IPA
(Sorry but I forget who made this for me in the alt.msdos.batch.net news
group)

(all on one line)
FOR /f "tokens=8 delims=<>" %%A in ('"C:\Program Files
(x86)\GnuWin32\bin\wget.exe" -O- -q http://checkip.dyndns.org') DO SET
"IPA=%%A"

Loading...