In the SAP configuration, you can see that the host name is specified. However, it is not true for the port because the port is in a standard range and must be specified in the services file on the client machine.
You can find the services file in:
- Windows: C:\\Windows\System32\\drivers\etc\services
- Linux or Unix-based systems: /etc/services
Specify the port in the services file.
Determine the port number by checking the SAP JCO server section.
The following image shows you the configuration of the SAP Gateway Server, sapgw31:
The last two numbers of the sapgw determines the last two numbers of the port. From the previous example, you get 31. The range for the last two port numbers is from 00 to 99.
The default ranges for SAP include 3200 to 3299 for sapdp and 3300 to 3399 for sapgw.