I have created a server socket, and specified the port 12345
to listen to, and have allowed connection requests to it to go through any of the IP address available on the system by passing INADDR_ANY
to bind()
. This is the values of the server socket:
My question is, can I specify what IP address and Port number is allowed to send me a connection request (i.e. the values in the Foreign Address in the image above)?