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

后端 未结 6 1512
深忆病人
深忆病人 2021-02-04 03:06

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

java.net.SocketException: Address family not

6条回答
  •  轮回少年
    2021-02-04 03:54

    Thanks this helped me :

    Anti-virus blocking the connection. If you have an anti-virus running on that computer, try disabling it for a test.

    Open command prompt (windows start button, type cmd in search) Click top left of command prompt, click properties, enable quick edit mode Copy: setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true Right click on command prompt, should paste Hit enter. That easy!

提交回复
热议问题