i want to retrieve the server ip address, i have used this code for getting server ip address
PHP Code:
this return local ip address instead of the displaying ip address in the url.

why ? can any one tell the reason.. to solve this

if the url contain the 12... means it return local 10...

i want 12.. .