I had a similar problem but I fixed it with by doing some changes in firewall setting.
You can follow the below steps
Inside Windows Firewall, click on "Allow a program or feature through Windows Firewall"
Now inside of Allow Programs, Click on "Change Settings" button. Once you clicked on Change Settings button, the "Allow another program..." button gets enabled.
Click on "Allow another program..." button , a new dialog box will be opened. Choose the programs or application for which you are getting the socket exception and click on "Add" button.
Click OK, and restart your machine.
Try to run your application (which has an exception) with administrative rights.
I hope this helps.
Peace,
Sunny Makode