User Login

Help Community Login:

Socket Bind Issues. Can't Bind to a Port, etc. - SOLVED

STaRDoGG's picture
Head Mucky MuckJoined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainI use FirefoxI use Google ChromeI use Internet ExplorerI use SafariLinux UserMac UserWindows UserI donated to GeekDrop simply because I love it!Booga Booga BoogaI took a bite of the AppleFormer Phrozen Crew MemberI'm MagicMember of VileThe Dr. put the stem on the apple!The JokerSomeone thinks you're udderly delightful!
Relationship Status:
Single & Not Looking
Joined: 01/14/2009
Posts: 2617
Drops: 3100
Mood: Energetic

Quick story:

I run both Docker and Hyper-V often. I also run OpenVPN.

Earlier today I ran into an issue using OpenVPN, I've never had problems with up until today, where it wouldn't connect to any of my VPNs. Turns out it was because it could no longer bind to any of it's usual ports on my machine (Windows 10).

Long story short, after a ton of gumshoeing, Docker and Hyper-V, as far as I can tell, funked up Windows after some update somewhere along the line and reserved MASSIVE amounts of ports, so no other app could use them anymore. This applies not only to OpenVPN, but ANY app you try to use than needs to connect to a port within that absolutely massive range of excluded ports.

To be honest, I'm not entirely sure who's the dick in this situation; be it Microsoft or Docker (pretty sure MS), but at this point in time I don't even care as long as my ish's's working normal again. Which it is.

Here's the fix, and it's safe to try even if it turns out this specific cause wasn't your own issue, because it just fixes a "bug", setting your Windows back to the way it is supposed to be, which allegedly MS addresses in an update.

Do these steps in order, from an Admin command prompt:

  • net stop winnat
  • netsh int ipv4 set dynamic tcp start=49152 num=16384
  • netsh int ipv6 set dynamic tcp start=49152 num=16384
  • net start winnat

You can stop there and you're all done with this; everything should work fine once again, but if you want a bit of technical insight, and to see if this IS indeed your issue, run this from a command prompt:

  • netsh int ipv4 show excludedportrange tcp

If you have a crazy long list, then you've probably been bitten by the bug. To further confirm, run this command:

  • netsh int ipv4 show dynamicport tcp

If you see 1025 instead of 49152, you've most certainly definitely 100 million percent been bitten, and you'll be dancin a jig after running the above fix.

I Averaged: 3.3 | 3 votes

Read More ...

Who's New

Kortniedawn's picture
GRAdiEnT's picture
Ktcostamagna's picture
juangil73's picture
kossmoss's picture
KubaBoi's picture
Anonymous_Hacker's picture
rogerwinhye's picture
nemesis3290's picture
chap2315's picture
Pancake's picture
Stephenhaw909's picture
travis's picture
hawkeyefxr's picture
Michaelchung2002.'s picture
facebook codes exploits tips tricks Phrozen Crew
All contents ©Copyright GeekDrop™ 2009-2022
TOS | Privacy Policy