How to tell IP address of remote machine?

Tim ignored_mailbox at yahoo.com.au
Tue Oct 27 15:27:53 UTC 2009


On Wed, 2009-10-28 at 00:04 +1000, Michael D. Setzer II wrote:
> Something that I've used to setup my own method to get the IP address
> of machines behind a NAT or other setup.
> 
> Just put this in the /var/www/html
> 
> <html><head><title>IP ADDRESS</title>
> <body>
> <?php echo $_SERVER['REMOTE_ADDR']; ?>
> </body>
> </html>

Same thing as I said, just a different methodology...  Using PHP, rather
than SSI.  You can do this with CGI, ASP, and probably dozens of other
languages.  So there's usually some way to get a server to provide that
data.

-- 
[tim at localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.






More information about the users mailing list