Techwarelabs Community

Techwarelabs Community (https://www.techwarelabs.com/community/index.php)
-   Software - Applications, Programming, and Games (https://www.techwarelabs.com/community/forumdisplay.php?f=13)
-   -   IP Address (https://www.techwarelabs.com/community/showthread.php?t=1923)

Aoshi 08-20-2002 09:37 PM

IP Address
 
I was wondering if anyone knows of a java applet or a program or anything that i could use to throw on a webpage and have it tell me the ip address of that computer, (not the one that i am on). I would like this so that i dont have to get someone to go to pingmeplease.com or any kind of webswite like that and tell me the ip of my file server is. Instead i would be able to go to my web site and it tell me.

Keefe 08-20-2002 11:33 PM

You could use something like this...

Code:

<?
print "<html>\n";
print "<head><title>Your IP Address</title></head>\n";
print "<body bgcolor=#FFFFFF>\n";
print "<h2 align=center>Computer Information</h2>\n";
print "<hr noshade width=50%>\n";
print "<table border=0 cellpadding=2 cellspacing=2 align=center>\n";
print "<tr>\n";
print "  <td align=right>IP Address:\n";
print "  <td align=left>$REMOTE_ADDR</td>\n";
print "</tr>\n<tr>\n";
print "  <td align=right>Hostname:</td>\n";
print "  <td align=left>" . gethostbyaddr($REMOTE_ADDR) . "</td>\n";
print "</tr>\n</table>\n";
print "<hr noshade width=50%>\n";
print "</body>\n";
print "</html>\n";
?>



All times are GMT -5. The time now is 09:56 AM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.