Refarctoring of ip address and port:
Now ip address and port are saved as InetSocketAddress