I'm not sure I understand your issue, the client side port is not the same as the server side port (a client can have something listening on port 8080 and still be able to connect to a server...