SERVERNAME function


Syntax:

  SERVERNAME() 

This returns the primary host name of the server (for example, 'fred.mynet.org'), or if that should not be available, the name in numeric form (e.g., 12.34.56.78).

If the latter case, your TCP/IP installation probably needs adjustment. For example, if running in loopback mode and not on a real network, your HOSTS file in TCPIP\ETC should contain your host name. Check also to see what your TCP/IP HOSTNAME command (from an OS/2 prompt) returns; again, it should be a full symbolic name (not the numeric form).

Note that determining the server name may involve a significant delay if the network has to be asked to resolve it. It may vary from transaction to transaction if multiple networks are connected to the server.


[ previous section | GoServe | next section ]

From 'goserve.doc', version 2.32.
Copyright © International Business Machines Corporation, 1993, 1995.
All rights reserved.