Im having a problem running my Java application: When the following line gets executed, it thows an exception:
InetAddress.getLocalHost();
The following exception gets thrown:
java.net.UnknownHostException: ????????: ????????
at java.net.InetAddress.getLocalHost(InetAddress.java:1506)
at main.Main.main(Main.java:23)
Caused by: java.net.UnknownHostException: ????????
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
at java.net.InetAddress.getLocalHost(InetAddress.java:1501)
... 1 more
I know that this is a problem with my local machine since it works on my virtual machines and other devices. I'm using Windows 10 and my hosts file is the default (non edited). What do the question marks mean? What could I try to fix this?