get my pc ip php code example Example: php only my ip $myIp = ''; if ($_SERVER['REMOTE_ADDR'] == $myIp) { //do something }