  Determining Source IP Address, Port? 
 The Question is:
 
Is it possible to find the ip and port number of a terminal from the terminal
 itself.
 The Answer is :
 
  Traditional simple terminal devices do not have IP ports and addresses,
  this communications capability is usually afforded to the terminal by
  a terminal server.  For display devices that do provide integrated IP
  networking support -- including operating systems or client packages for
  dedicated or general-purpose computer systems -- the details on the
  client and the client networking environment will be required as the
  OpenVMS Wizard is not aware of any standardization in this area.
 
  Please contact the vendor of the particular display device involved,
  if the display has an integrated IP network stack.
 
  In the case of various IP protocols, the client may or may not have
  a particular fixed IP port.
 
  In the case of OpenVMS host systems and incoming network connections
  (and not executing directly on the terminal, terminal emulator, or
  terminal client itself), the usual approach for determining the IP
  source address of the originating client system is the f$getdvi DCL
  lexical or the sys$getdvi system service, and specifically the
  TT_ACCPORNAM or the DVI$_TT_ACCPORNAM itemcode.  This allows the
  OpenVMS interactive session or the application program to acquire
  the origin of the current network connection, if such information
  is available.  (This implementation matches what was used to allow
  source identification of LAT and DECnet interactive user network
  connections, as well.)
 
 Answer written or last revised on  26-JAN-2004 
