How to identify the agent using port on Windows