Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
I deployed a JAR REST API. It works when I use curl http://localhost:8040/services/myservice
But, when I check this URL from another computer (replacing localhost by the real IP address), I get a timeout exception.
Did someone encounter this problem ?
Hello,
it's a network issue, could you please check if there is firewall is running in the runtime computer? if yes,
please try to disable the firewall or open the 8040 port by the below command like
#sudo firewall-cmd --permanent --zone=public --add-port=8040/tcp
#firewall-cmd --reload
Hello Customer,
please try to enable the remote access for the runtime by
Open the <runtime home>/etc/org.ops4j.pax.web.cfg file to edit it.
add the below line:
org.ops4j.pax.web.listening.addresses=0.0.0.0
then restart the runtime
please refer to the document in https://help.talend.com/r/en-US/Cloud/remote-engine-user-guide-linux/enabling-remote-access-using-http-optional
Hello @Aiming Chen
I added the line to the file,
but nothing changed.
From another computer on the same network, when I run http://serveripaddress:8040/services/ or http://serveripaddress:8040/services/myservice from a browser (or Postman), I get a timeout error. I would like to be able to request my API from another machine.
hello,
could you please check if there is a network issue between the 2 computers by try to run the below command
telnet <ip> 8040
Hello @Aiming Chen ,
Here is the result :
Also, on the targeted server, when I run netstat -paunt, I get this for 8040 :
First column is local address, second is distant address, and last is state.
So it could be a network problem ?
Hello,
it's a network issue, could you please check if there is firewall is running in the runtime computer? if yes,
please try to disable the firewall or open the 8040 port by the below command like
#sudo firewall-cmd --permanent --zone=public --add-port=8040/tcp
#firewall-cmd --reload
@Aiming Chen ,
It works now !
I'll check the firewall after each installation.
Thank you a lot achen !