ports

  1. J

    Question Get Ports from a given PID

    Hi, I'm trying to write a program that checks for all ports being used by a specific process. I have the process ID and I need to get all the ports and their status (ESTABLISHED, LISTENING, .....). I've been searching all over the web, but I can only find functions that get ports when given an...
  2. A

    Limit ports used by an app

    Hi all, I have written an application that connects to 800+ devices via a mobile network. Currently when a connection is made to one of these devices the app will use the first available port. For security reasons I would like to restrict the range of ports used to around 1000. Does anyone have...
Back
Top