Windows service does not work outside office environment

63 views Asked by At

I have developed my own Windows service on my work laptop. It is installed on tcp on local host on the port 555. The service can be easily started and stopped from the office whether I am connected via LAN or Wifi.

Once the service is installed it will look for some jobs it has to do from an Sqlite database which, as you know, works without a connection and does not require a server.

As soon as I take my laptop home the service becomes unavailable. My program generates a SocketException that says

No such host is known

And the service is unable to start.

So I spent half a working day to check my program for errors. Eventually I came back to the office to see the service is back to work without me having changed a thing. To make sure, I took my laptop to a coffee shop nearby and tested using their Wifi. It did not work there either.

I checked my IP on What Is My IP? for any proxies but there are no proxies detected. But the mother company of my office that is giving us the internet resides in another city and What Is My IP also thinks that I am in that city. So I am currently only able to develop and test my service in the office environment. But that of course is a very bad thing since this Windows service should soon be installed on our customer servers. Any clues?

0

There are 0 answers