This should be what you want:
$_SERVER['REMOTE_ADDR']
The IP address from which the user is
viewing the current page.
More Related Contents:
- CloudFlare and logging visitor IP addresses via in PHP
- How to get the client IP address in PHP
- What is the most accurate way to retrieve a user’s correct IP address in PHP?
- Get the client IP address using PHP [duplicate]
- Call a REST API in PHP
- Connecting to WS-Security protected Web Service with PHP
- Get Country of IP Address with PHP [duplicate]
- What is the best way to read last lines (i.e. “tail”) from a file using PHP?
- How to Get the Query Executed in Laravel 5? DB::getQueryLog() Returning Empty Array
- Is it safe to trust $_SERVER[‘REMOTE_ADDR’]?
- IP Address of the machine in PHP gives ::1 but why?
- PHP how to get local IP of system
- How to get the client IP address in PHP
- Check whether or not a CIDR subnet contains an IP address
- How to easily consume a web service from PHP
- is there a good PHP geolocation service? [closed]
- php return 500 error but no error log
- pass arraylist bean from android to webservice php
- Where can I find error log files for PHP?
- How to get info on sent PHP curl request
- PHP SOAP client that understands multi-part messages?
- converting SOAP XML response to a PHP object or array
- How to build a correct SOAP request with PHP
- Upload Images On Twitter Using PHP
- Coverting Hex to Image in PHP?
- How to consume a WCF Web Service that uses custom username validation with a PHP page?
- Log the actual SQL query using ActiveRecord with Yii2?
- Unique key generation
- PHP – Implement logging mechanism to file in several classes
- Which MySQL datatype to use for an IP address? [duplicate]