+ 31
How can we get the IP address of the client?
9 Answers
+ 32
Thanks for Your answers!
+ 6
you should check out the Q&A section.
+ 4
$_SERVER['REMOTE_ADDR']
More info:
http://php.net/manual/en/reserved.variables.server.php
+ 3
she asked for the client, not the server
+ 2
Flanders is right!!
- 2
Open a command console. On a Mac, it's called Terminal and it's in the Utilities folder. On a PC, click on Start, then "All Programs", then Accessories, and then Command Prompt. This will let you ping any website to find out the IP address of that website.
- 2
Ping an address. This sends a signal out to a URL which then bounces back with the website information attached, and how long the round trip took.Type "ping [URL]" - example: ping www.facebook.com.
- 2
Press return/enter. The IP address should appear beside the website name, followed by how many seconds or milliseconds the ping took.The format of an IP address is numeric, written as four numbers separated by periods. For Facebook, the IP address is 69.171.237.16.