Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Address family not supported by protocol family - SocketException on a specific computer

In an app which I have programmed, I have a java.net.SocketException on a specific computer:

java.net.SocketException: Address family not supported by protocol family: connect

This specific computer runs Windows 7 32 Bit and is connected to the internet through Local Area Connection (Ethernet). The app runs correctly on other computers, with Windows 7 and Windows 8, connected through Local Area Connection or through Wi-Fi, so I am actually not sure that the problem is programmatic. I have tried to check the protocols of the Local Area Connection, but I didn't see any problems. Can someone please help me understand what is the problem? Why is this exception thrown?

like image 805
Or B Avatar asked May 04 '13 11:05

Or B


2 Answers

Try to check whether the spy program called "RelevantKnowledge" is installed. Its uninstallation helped me to solve the problem.

like image 139
bronixx Avatar answered Nov 18 '22 17:11

bronixx


For me Java option -Djava.net.preferIPv4Stack=true did the trick

like image 26
mibutec Avatar answered Nov 18 '22 17:11

mibutec