VB6 windows service not able to listen to local TCP port on Server 2008
Posted on 2011-04-27
I have a legacy VB6 application that can run as a service or as a desktop application. It opens a local TCP port and listnens for a connection from a remote client. We recently migrated our server to Windows Server 2008. We also put all the firewall rules in Windows Firewall (both allowing the application on any port and all connection to the local port desired) that we had in Windows Server 2003.
The application, when running as a desktop app, opens the local TCP port and works perfectly. However, when we try to run it as a service, it fails to open the local TCP port (the remote client fails to connect and we can't see the port as LISTENING when we run a NETSTAT). We've tried setting the Service to run as various accounts (a domain account, a local account, and Local System), but still can't get it open the port.
What else do I need to do in order to get it to listen on the port?