This isnt a firefox issue. This goes deeper. Winsock is needed to get and send data with your network connection. That would be why you keep getting this.
Winsock Problems how to fix - Google Search
Maybe one or more of those will help. It seems there are a few different WinSock fixes to choose from. But that should do it.