Skip to main content

1E 23.11 (SaaS)

Network.GetListeningEndpoints

Module

Network

Method

GetListeningEndpoints

Library

Core

Action

Get the list of TCP and UDP endpoints which are listening for incoming connections, for IPv4 and also IPv6 if available.

Parameters

(None)

Return values

For each connection...

  • Class (string): "IPv4" or "IPv6" for TCP, or "UDPv4" or "UDPv6" for UDP.

  • LocalAddress (string): The IP address on this host.

  • LocalPort (int): The port on this host.

  • ProcessId (integer): The PID of the process associated with the connection.

  • ProcessName (string): The name of the process associated with the connection.

Example

Network.GetListeningEndpoints();

Platforms

  • Windows

  • Linux

  • MacOS

Notes

Use Network.GetConnections for established connections.