• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Windows10 blocking Python socket connection

 
village idiot
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I keep getting WinError 10057 or 10061 when trying to establish a connection between server files and client files. I'm using IDLE with Python 3.8, and when I run the server file I get the message that the server has started, but no connection is allowed by the host machine.

Any clues as to how to fix this issue?

I did allow pythonw.exe to pass through my firewall, but it does not fix the issue.

Does Windows 10 have an issue with being used as a server?
Should I use a specific port?
 
Carol Murphy
village idiot
Posts: 1208
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay! Did a little research and I think I found a solution. I was running both server.py and client.py in the same IDLE console. It seems that I need to open two instances of IDLE and run the server in one and then the client from the other. I can’t wait to get home and try it!
(I think this may be a DOH! Moment)
Yep. That was the problem. Got a connection and can proceed with the tutorial.

I need a headslap graemlin!                                                        DOH!
 
reply
    Bookmark Topic Watch Topic
  • New Topic