1492330 - Connect Error: Connect to Host XXXX Port XXXX error: NIECONN_REFUSED - Message no. 04100
SAP Knowledge Base Article, Version: 8, Released On: 04.04.2023
Show Changes
DescriptionAttributesAvailable LanguagesRate this document
激活项目以转到页面中的部分
Symptom
Connect Error: Connect to Host XXXX Port XXXX error: NIECONN_REFUSED (Message No. 04100).
Environment
- Basis release 6.20 or higher.
- BC-SRV-KPR or BC-SRV-ARL.
Reproducing the Issue
- Run T-code SE38
- Excute program RSCMSTH0
- Input repository name e.g. A2
- Then run the program
- Connect Error: Connect to Host XXXX Port XXXX error: NIECONN_REFUSED occured
- Or in T-code OAC0
- Double click the repository name e.g. A2
- Goto menu Enviroment -> CSAdmin
- The host name is wrong or the port refers to a wrong one, e.g. 80 instead of 8000
Cause
- In most cases the cause is the connection does not work.
- In particular case, wrong host name or port, etc. were maintained in the table HTTPURLLOC when you have configured the repository in OAC0 for access using HTTP or HTTPS protocol. And also have an entry in table HTTPURLLOC for exception Host and port for HTTP or HTTPS protocol.
Resolution
-
Regarding general NIECONN_REFUSED errors please check if the hostname can be resolved on your frontend machine with a "niping test" as per SAP note 500235:
niping -v -H <hostname>
The same test has to be done with the short hostname of the other application server. -
If you have configured the repository in OAC0 for access using HTTP or HTTPS protocol. And also have an entry in table HTTPURLLOC for exception Host and port for HTTP or HTTPS protocol.
- Call T-code SE16.
- Check if the table HTTPURLLOC is empty, or if the host name and port number etc. are maintained correctly in the table HTTPURLLOC.
- If it's not correct then customize the table HTTPURLLOC.
Please look in the URL link Configuration Table HTTPURLLOC and find out how to fill it.