If you are having problems establishing a connection across a network, you can use debugging options at both the client and the server to diagnose problems. On the server, you use the -z option. The startup information appears on the Server Messages window: you can use the -o option to log the results to an output file.
See -z server option and -o server option.