If you use gamestudio networking, you would not need to use the port.
And if you use the port on the client side, make sure the server is listening on that port, too.
You should launch both apps with -diag in order to create two logfiles to show here.