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.

  1. Log in as superuser, then display the /etc/services file.

  2. Viewing the existing port numbers, select any number between 1024 and 16000 that is not listed in the file.

  3. Using vi or another text editor, add a line to the /etc/services file 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 pro5srv service name and 1100 port number are not already used in the file:

    pro5srv 1100/tcp # PRO/5 file service

  4. If the service name is set to anything other than pro5srv, the following line must be added to the config.bbx file to enable all clients to access the host server:

    SERVICE_NAME= servicename