Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
socket.timeout: timed out
#2
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.
Reply


Messages In This Thread
socket.timeout: timed out - by DanielGraham - Dec-22-2017, 02:12 PM
RE: socket.timeout: timed out - by squenson - Dec-22-2017, 03:42 PM
RE: socket.timeout: timed out - by DanielGraham - Dec-22-2017, 06:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Issues with "connection timed out" duckredbeard 0 1,519 Dec-31-2022, 10:46 PM
Last Post: duckredbeard
  FTp timeout except korenron 2 3,664 Feb-01-2022, 06:51 AM
Last Post: korenron
  [Selenium]Timed out receiving message from renderer: 10.000 wood_6636 0 2,689 Jun-26-2020, 08:59 AM
Last Post: wood_6636
  Connection timed out error when connecting to SQL server kenwatts275 2 3,384 Jun-02-2020, 07:35 PM
Last Post: bowlofred
  Timed images menator01 0 1,875 Oct-24-2019, 07:34 AM
Last Post: menator01
  timeout value in subprocess jonesin1974 2 5,121 Dec-01-2017, 02:18 PM
Last Post: snippsat
  AsyncSSH and timeout Standard_user 1 5,568 Nov-03-2016, 06:05 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020