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

后端 未结 6 1369
深忆病人
深忆病人 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:55

    1. Open command prompt (windows start button, type cmd in search)
    2. Click top left of command prompt, click properties, enable quick edit mode
    3. Copy: setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true

    4. Right click on command prompt, should paste

    5. Hit enter. That easy!

提交回复
热议问题