
The default AS Java ports enable you to establish communication to an AS Java instance as part of the SAP NetWeaver cluster. The ports are generated at installation time and when new cluster elements have to be created.
For AS Java, 20 ports are available for the ICMelement and 80 are available for the server elements, since five is the maximum number of ports for a server process. Therefore, no more than 16 server cluster elements can be created on one instance.
The default AS Java ports meet the following requirements:
You can see the instance number from the directory, where the AS Java is installed. Under /usr/sap/<SID>, there is a directory whose name contains the instance name including the instance number. For example, JC40 (where 40 is the instance number).
Dispatcher <port_index> Values
| Index | Port Name |
|---|---|
|
0 |
HTTP port |
|
1 |
HTTP SSL port |
|
2 |
IIOP Initial Context port |
|
3 |
IIOP SSL port |
|
4 |
P4 and JMS port |
|
5 |
P4 SSL port |
|
6 |
IIOP port |
|
7 |
Telnet port |
For server cluster elements the ports are created from 50000+100*<instance_number>+20+n*5+<port_index>, where n is the number of server elements from 0 to 15 and <port_index> is from 0 to 4 .
You can see the number of the server element from the installation directory of the AS
Java. Under
<Drive>:\usr\sap\<SAPSID>\<Instance_Name>\j2ee\cluster,
there are server<Server_Number> directories representing the server processes in the
AS Java. Their number depends on the number specified at installation time.
The ports for AS Java server3 with <instance_number>=15 are from 51535 ( 50000+100*15+20+3*5+0 ) to 51539 ( 50000+100*15+20+3*5+4 ).
Server <port_index> Values
| Index | Port Name |
|---|---|
|
0 |
Join port |
|
1 |
Debug port |
According to the formula mentioned above and the <port_index> values, the server ports for the AS Java are as follows:
AS Java Server Ports
| Internal Port | Value |
|---|---|
| Server Join Port |
For s0 = 5NN20; for s1 = 5NN25; for s2 = 5NN30; etc. For s15 = 5NN95, where s0, s1, s2,…, s15 shows the number of server processes, and NN is the instance number. |
| Server Debug Port |
For s0 = 5NN21; for s1 = 5NN26; for s2 = 5NN31; etc. For s15 = 5NN96, where s0, s1, s2,…, s15 shows the number of server processes, and NN is the instance number. |
| DSR Infrastructure |
For s0 = 5NN22; for s1 = 5NN27; for s2 = 5NN32; etc. For s15 = 5NN97, where s0, s1, s2,…, s15 shows the number of server processes and NN is the instance number. |
Example
The port for P4 on a dispatcher element with <instance_number>=15 is:
P4 port=50000+100*15+4=51504
There are additional administrative services used by the AS Java. The corresponding ports are shown in the table below.
Administrative Service Ports
| Service | Port | Default | Range |
|---|---|---|---|
|
Start service HTTP |
5NN13 |
50013 |
50013-59913 |
|
Start service HTTPS |
5NN14 |
50014 |
50014-59914 |
|
SL Controller |
5NN17 5NN18 5NN19 |
50017 50018 50019 |
Not applicable |
TCP/IP Ports Used by SAP Applications
This document provides a complete list of the ports used in conjunction with the AS Java, for example, the ports used by SAPinst during installation or when using the SAP Web Dispatcher. You can find this document on the SAP Developer Network at www.sdn.sap.com/irj/sdn/security under Infrastructure Security → Network and Communications Security.