Add method for getting ip address of client.