Python 3.5 Socket OSError: [Errno 101] Network is unreachable

Source: Internet
Author: User

/******************************************************************************** * Python 3.5 socket OSError: [Er Rno 101] Network is unreachable * Description: * In the network state all normal time did not appear this problem, when there is a relatively long time network connection interrupted *, this phenomenon will occur, try...except ... Solve. * 2017-3-1 Shenzhen Nanshan Ping Shan village Zengjianfeng *************************************************** *****************************/first, the error phenomenon: Traceback (most recent call last): File"localdetect.py", line A,inch<module>socketclient.sendto (Mac.encode ('Utf-8'), address) OSError: [Errno101] Network isUnreachable [1]+ Done (1python localdetect.py Second, error reason: Network status is not good, socket sendto wait timeout. 

Python 3.5 Socket OSError: [Errno 101] Network is unreachable

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.