Application is not able to communicate over TCP port

Noah Jacobsen 21 Reputation points
2022-08-16T22:59:00.137+00:00

I have installed a client to communicate with a server.

The application uses two TCP ports for communication (lets call them "A" and "B"). I have opened the ports on the server and the client via the Windows firewall (both inbound and outbound), and created a firewall rule on the hardware firewall to allow them to communicate through these ports.

On Friday through yesterday morning, the client was able to communicate with the server. After some unknown event, the client no longer communicates with the server.

Reading the launch log from the client, the application gets hung up on port A and times out. I verified the Windows firewall rules: the inbound and outbound rules are still active and configured properly. After a reboot, no change to the rules.

Running netstat -aon before the application times out doesn't list either port as listening. My remote control software also does not list A or B in the Network/Open Ports list. The hardware firewall still has the rule active. The server device appears to be working correctly; the server application is listening on A and B.

Help! I don't know what to look for next.

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,362 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,926 questions
{count} votes

Accepted answer
  1. Anonymous
    2022-08-16T23:39:36.217+00:00

    Running netstat -aon before the application times out doesn't list either port as listening

    Sounds like the app is somehow broken. May need the developer's help to debug it.

    --please don't forget to upvote and Accept as answer if the reply is helpful--


2 additional answers

Sort by: Most helpful
  1. Limitless Technology 44,376 Reputation points
    2022-08-17T15:06:49.267+00:00

    Hello,

    For a port to be Listening needs to have an application or running process that uses it. In this situation (since nothing has changed on the settings) the most likely that the remote application is not using the port. For instance, you can get the same behavior in a SQL Server when the service is stopped, the ports will not be listening on the server.

    I can also recommend you Portqry, the Microsoft tool to check connections and active ports: https://www.microsoft.com/en-us/download/details.aspx?id=24009

    Hope this helps with your query,

    ---

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  2. Noah Jacobsen 21 Reputation points
    2022-08-17T21:59:28.003+00:00

    Kinda sorta solved. We had the ability to switch which device was the server and which was the client so we went with that and it appears to be working. For now.

    The machines are in a weird state of being managed by two separate IT divisions; one that's very hands-off but strict, and us, who just try to solve problems. The original server machine had the strict division's software firewall installed, and they wouldn't probe deep enough to see if that was the block; the assumption is that they were the issue, since we kindly uninstalled our software firewall to test (I know, it's very inadvisable to have two installed but I don't get a say in that).

    To summarize - still don't know what the problem was, however the assumption is that one of the two software firewalls installed was blocking one of the ports, but we can't verify since it's managed by a third-party.

    Thanks for the responses, hope this helps someone in the future.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.