Java application can't estabilish network connection, if the connection came up after application start. First I'm running a the java program below with no network connection. While the program running, the network connection came up, but the application can't reach it, why?

Karl Logan

I've found the solution for this problem. If I use the ip address instead of the name of the server then I'm able to reconnect after network break.