As a prerequisite for communication, make the following TCP/IP settings:
If you do not work in registration mode, the SAP Gateway should be able to start the external program (RFC server) via the remote shell.
For more details on the TCP/IP settings, see the documentation
BC – SAP Communication: Configuration.