Skip to main content

1E 8.1 (on-premises)

Network.GetListeningEndpoints

Method

GetListeningEndpoints

Module

Network

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

  • Solaris Intel - no

  • Solaris Sparc - no

  • Android - no

Notes

Use Network.GetConnections for established connections.