getting ip address and host address using php built in functions.