Dec-22-2017, 03:42 PM
The statement
s.settimeout(10)
sets a timeout period to 10 seconds. Then the statement s.connect(("192.168.95.148", 21))
tries to connect to the device which has the ip address 192.168.95.148 (this ip address is part of an internal network, not accessible from the Internet but only accessible within your internal network), on port 21. After 10 seconds, you will notice that the connection doesn't work, most probably because there is no device with such ip address on your internal network, so you get a timeout.