Change print(net.Listener) to print(net.Listener.Addr()). but it behaviour is same.