• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Windows10 blocking Python socket connection

 
village idiot
Posts: 1207
  • Mark post as helpful
  • send pies
  • 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: 1207
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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!
 
Is this the real life? Is this just fantasy? Is this a tiny ad?
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!