Whenever I open Python I get Socket error: No connection could be made because the target machine actively refused it. Also I get IDLE's subprocess or personal firewall software is blocking the connection.
I was wondering how to fix this?

I fixed that on my machine (XP) by opening up task manager, and going to process and ending any "python.exe" processes. That fixed it for me every time.

But it really depends, sometimes it works others it dosent do a thing.

Thanks it worked!

No worries! glad it helped someone else.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.