Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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!
 
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic