Fixed the bug with client ip address and port.