log ip and port when opening a listening socket
unittest for opening a listening socket