The client everytime connects to the server via a random port. I want to make the client side port also fixed i.e the server should accept new connections if they are coming a pre specified port only.
Is it possible to do that??
Yes it is possible.
socket.Bind(new IPEndPoint(IPAddress.Any, 5555));
socket.Connect(endPoint);
Is it possible to do that??
Yes it is possible.
socket.Bind(new IPEndPoint(IPAddress.Any, 5555));
socket.Connect(endPoint);
Subscribe to post feed