Slave cannot connect to Master

Denis picture Denis · Sep 4, 2015 · Viewed 14.8k times · Source

I'm trying to configure my laptop as a slave, my master would be a server where Jenkins is installed. I've followed these instructions.

However, when it comes to access http://master:8080/ from my slave's browser, internet cannot display the webpage.

So I tried the second way, by writing javaws http://master:8080/computer/Slave/slave-agent.jnlp in the cmd prompt and this time I have this error:

Could not load file/URL specified: http://master:8080/computer/Slave/slave-agent.jnlp

I am new to stuff with network etc so can you enlighten me?

EDIT: I manage to reach the page, instead of user master:8080, I tried with the IP of the server and it worked!

But now when I launch the agent, I have an error saying:

java.net.ConnectException: Connection refused:

Where does the problem come from?

Answer

Denis picture Denis · Sep 7, 2015

I found the problem: in Jenkins Master Configuration, in Jenkins URL, instead of "localhost:8080", I put the IP of the server (http://[ip_server]:8080/) and now I can connect my slave to my master by using each way.