How to access Jenkins remotely on Ubuntu 12.04 server?

Posted by quincyglenn on Server Fault See other posts from Server Fault or by quincyglenn
Published on 2012-07-17T21:58:24Z Indexed on 2012/12/19 11:04 UTC
Read the original article Hit count: 227

Filed under:

I have installed Jenkins and opened port 8080 on Ubuntu 12.04 server but still can't access Jenkins remotely. Below is the procedures I took.

# Install Jenkins, enable UFW and open port 8080
sudo apt-get install jenkins
sudo ufw enable
sudo ufw allow 8080
sudo ufw reload

# Check the status
sudo ufw status
8080    ALLOW    Anywhere
8080    ALLOW    Anywhere (v6)

# Locally
curl -I localhost:8080
HTTP/1.1 200 OK
Server: Winstone Servlet Engine v0.9.10
...

# On an external machine
curl -I [ip]:8080
couldn't connect to host

© Server Fault or respective owner

Related posts about jenkins