Adding get ip address on sockets