When I tried executing the code new InetSocketAddress("localhost", 3000); in java 13, the host is being resolved to localhost/127.0.0.1:3000 instead of resolving to localhost:3000.
Any idea why it is being resolved with the IP address of localhost (i.e. 127.0.0.1) along with the localhost in the host address?
Because of this issue, I am not able to connect to the desired server and resulting to an UnknownHostException in java.