Home -
PHP-
Get User's IP
This script shows how to get a user's ip address when they load your web page. Answering the question What's My Ip?
/*
FluidCoding - Get User Ip
Author: Brian Sonnie
*/
<?php
$ip=$_SERVER['REMOTE_ADDR'];
$echo $ip;
?>
Output
38.107.191.118