Implemented technique for getting ip and port of client