Define the SAP system message port and gateway port in the services file where the TS Client for SAP is installed.
Note: On Windows, the services file is located at c:\Windows\system32\
drivers\etc\services.
For example, the port definitions might be:
sapmsE6Q 3606/tcp #SAP System Message Port
sapgw10 3310/tcp #Gateway port