Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to access Jenkins from browser on Windows

I installed Jenkins on CentOS 7 running in VMware Workstation. Jenkins Service is running:

 jenkins.service - Jenkins Service
   Loaded: loaded (/etc/systemd/system/jenkins.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2016-06-21 08:47:46 PDT; 5s ago
 Main PID: 68969 (java)
   Memory: 82.3M
   CGroup: /system.slice/jenkins.service
           └─68969 java -jar /usr/local/bin/jenkins.war

Jun 21 08:47:48 server.centos.lan java[68969]: Jun 21, 2016 8:47:48 AM org.eclipse.jetty.util.log.JavaUtilLog info
Jun 21 08:47:48 server.centos.lan java[68969]: INFO: Started ServerConnector@34ddf859{HTTP/1.1}{0.0.0.0:8080}
Jun 21 08:47:48 server.centos.lan java[68969]: Jun 21, 2016 8:47:48 AM org.eclipse.jetty.util.log.JavaUtilLog info
Jun 21 08:47:48 server.centos.lan java[68969]: INFO: Started @2472ms
Jun 21 08:47:48 server.centos.lan java[68969]: Jun 21, 2016 8:47:48 AM winstone.Logger logInternal
Jun 21 08:47:48 server.centos.lan java[68969]: INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Jun 21 08:47:49 server.centos.lan java[68969]: Jun 21, 2016 8:47:49 AM jenkins.InitReactorRunner$1 onAttained
Jun 21 08:47:49 server.centos.lan java[68969]: INFO: Started initialization
Jun 21 08:47:49 server.centos.lan java[68969]: Jun 21, 2016 8:47:49 AM jenkins.InitReactorRunner$1 onAttained
Jun 21 08:47:49 server.centos.lan java[68969]: INFO: Listed all plugins

IP of VM is 192.168.139.160. Host operating system is Windows 7.

When I try to access Jenkins from browser on Windows using http://192.168.139.160:8080/jenkins I get error: "This site can’t be reached". What am I doing wrong?

like image 796
V. Roma Avatar asked Nov 27 '25 07:11

V. Roma


1 Answers

If you have installed Jenkins on CentOS 7.1, you should add a rule in firewall for port 8080, or at least disable firewalld.

To disable firewalld, you can use these commands:

systemctl stop firewalld

systemctl disable firewalld

After this you should be able to reach Jenkins on port 8080.

like image 87
Alexander Tolkachev Avatar answered Nov 29 '25 20:11

Alexander Tolkachev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!