There are several ways of finding this information. Reality's DataBasic SYSTEM(49) function will return this information
CRT SYSTEM(49) might return
INET-127.0.0.1-023 where INET indicates a telnet connection, 127.0.0.1 - the clients IP address and 023 the port its connecting to.
Or you can use the "PLID" verb from SYSMAN account or indeed read the USER.LOG record for the port you are interested in and you will find it on attribute 3.
A MultiValue and relational(SQL)-enabled database, it allows users to maximise the use of existing technologies while ensuring their customers needs are met, now and in the future. While maintaining its virtual machine concept, Reality now has open interfaces - using integrated ODBC/JDBC SQL, Web Services, HTML, TCP/IP Sockets and simple extensions to DataBasic - an extended Dartmouth BASIC language with exceptional database and string handling abilities. Remote calls can also be made in order to provide integration with open Java applications and Microsoft Visual Basic/C/C++/C# and .net.