-
Java sockets help
I want to code a reverse connection and a little client connector.
I basicaly want a server where clients connect via a reverse connection to different sockets.
So client1 connects to socket 1
Client 2 connects to socket 2
This is done through a ip address on my local network and port.
Thank you i would appreciate it if someone could point me in the right direction
-
Re: Java sockets help
Hi Dear, Try this
Bind your server on a particular MainPort say 5000,
now the client will request on this port and in the response client will get a new port say 5001-Here you will have to do two things
first-create a new server thread and bind it on 5001
second-return the port 5001 so that client will now request for service on 5001
Remember one thing here first request from the client is for PORT on on which you will bind a new socket
and second request will be for Servicing the problem