how to end a connection in Socket library in python program after 2 seconds
I am trying to run the script. But when I pass an IP which is not in the network to the s.connect() function. It dosen’t respond, the script goes on hold, so I want to end the check on IP, if the Ip is not found in the network. Does anyone have an idea, on how to proceed.