add ip method to all sockets and http