how to communicate with local ip usng php code example Example: php get user ip $ip = $_SERVER['REMOTE_ADDR'];