|
Rejecting connections from a specific IP
My socket server is working fine. The clients are connecting and are getting the required responses.
The problem is that my server is listening continuously and accepts connection from any IP. I know that I have to implement login mechanism for security, but for the time being I just want to block few IP addresses.
How this can be done?
|