pk wrote:
> I mean something like Firefox's ShowIP extension, but much simpler, just
> seeing the IP the page is coming from.
>
> Is it possible at all? It looks strange to say the least that there are no
> ways of doing that.
>
> Thank you.
Use Fiddler2 to monitor ALL your web traffic regardless of which web browser
you use. You'll get tons of information most of which you won't understand.
After loading Fiddler2 and then visiting a web page, pick a session record
in the left pane of Fiddler2 and then use File -> Properties (or right-click
on the session record and select Properties). The X-HostIP field shows the
IP address of the host from where came THAT content. You really thought web
pages only had one source of content for them?
Also, the web browser doesn't care about the IP address. It doesn't work at
that level. It doesn't establish the socket between your client and the
server host. Your web browser doesn't care about or is involved in the DNS
lookup, if needed, or even in establishing the socket other than requesting
one get created. What Firefox is showing you is outside the realm of its
process. You could've just done the separate "nslookup "
yourself.
http://en.wikipedia.org/wiki/Internet_socket
http://en.wikipedia.org/wiki/Winsock
Your web browser requests the WinSock library to create a socket to the
target host. The socket is all the web browser cares about to communicate
with that host. The web browser (the application or client) requests to
open a socket on your local host and WinSock handles how to get that socket
connected to the destination host. So if you enter an IP name (hostname)
into your web browser, that's really all it knows about. It doesn't really
know the IP address from a DNS lookup that was never part of the web
browser's process to establish a socket.
Just like when you make a telephone call, you only enter the other party's
phone number. You nor your phone don't care about the physical addressing
or routing needed for the connection to find the other party's phone.
Firefox is giving you information that it really doesn't have in its own
session between it and its socket.