I wrote a windows service in Java, and it starts automatically (before user login to Windows). My problem is that it looks like the service has no access to the network before logon.
In the logs I see that before logon, I get: java.net.UnknownHostException
. However, the same code works fine after logon.
I tried to define the service as "network service", it did not helped.
Can anyone please help?
BTW:
There is no WiFi involved
I looked how TeamViewer program works and I saw that they have some registry values in FirewallPolicy. and they defined their service as local system. Which made me think maybe it has something to do with the firewall settings, however I cannot find anything in the web about it.