The answer is here: http://stackoverflow.com/questions/15699101/get-the-client-ip-address-using-php
Easy solution is:
$IP = $_SERVER['REMOTE_ADDR'];
More Related Contents:
- Rename Duplicate file name to another name in multiple folders [closed]
- Run c/java/python with PHP? [duplicate]
- How to convert fuzzy hash string to a file? [closed]
- What Java compareTo function does [duplicate]
- Android: If statement being skipped even if condition is correct
- Sending POST data in Android
- How to upload a file using Java HttpClient library working with PHP
- Signing PDFs on a server document using a signature from the user
- cURL equivalent in JAVA
- Regex exactly n OR m times
- Java equivalent to PHP’s preg_replace_callback
- Run Java class file from PHP script on a website
- How can I get stock quotes using Google Finance API?
- Problems submitting a login form with Jsoup
- Find everything between two XML tags with RegEx
- PHP’s strtotime() in Java
- java equivalent to php’s hmac-SHA1
- Regular expression to validate username
- SSL Connection Reset
- Android file uploader with server-side php
- Upload and POST file to PHP page with Java
- Calling PHP from Java [duplicate]
- A tool to add and complete PHP source code documentation [closed]
- stringByEvaluatingJavascriptFromString (iOS method, what is Android equivalent?)
- What is the JSP equivalent to json_encode ( in PHP )?
- Unserialize in Java a serialized php object
- JAVA- JFrame- non static method cannot be referenced from a static context [duplicate]
- Java Pass Method as Parameter
- In Java, how do I convert a byte array to a string of hex digits while keeping leading zeros? [duplicate]
- What is the best java image processing library/approach? [closed]