Setting the Service Name and Port Number - UNIX
To set the service name and port number, modify the /etc/services file of the host server and each client, as follows:
Incorrectly modifying the /etc/services file can prevent the system from operating properly. If you have any questions pertaining to the editing of this file, relegate this task to a System Administrator or other equally-qualified person.
-
Log in as superuser, then display the
/etc/servicesfile. -
Viewing the existing port numbers, select any number between 1024 and 16000 that is not listed in the file.
-
Using vi or another text editor, add a line to the
/etc/servicesfile that defines the service name, port number, and any comments according to the following syntax:servicename portnumber # comments
BASIS suggests the following entry, provided that the
pro5srvservice name and 1100 port number are not already used in the file:pro5srv 1100/tcp # PRO/5 file service
-
If the service name is set to anything other than
pro5srv, the following line must be added to theconfig.bbxfile to enable all clients to access the host server:SERVICE_NAME= servicename