Unable to access Jenkins from another mac - jenkins

We set up Jenkins running on our mac at address 10.20.xx.xx:8080
From the same mac, using localhost:8080 can access Jenkins
But from other machines in the network
10.20.xx.xx:8080/ doesn't load the Jenkins page.
Yet, we can ping the machine.
How do we configure so it can be accessed from outside?

This was because our systems are behind a proxy. Had to whitelist our Jenkins server IP in the mac
System preferences> Network > Ethernet|Advanced... > proxies > Bypass proxy settings

Related

Remote linux slave node failing to connect to locally running Jenkins

The problem is following.
I have Jenkins running on local machine (8080 port).
I've created linux instance in private cloud to use it as slave node for Jenkins.
I'm connecting to this linux node via Putty and logging in.
Trying to download agent.jar file, that needed for node connection using following command:
wget http://<my_ip>:8080/jnlpJars/agent.jar
But everything I get - is Connecting to <my_ip>:8080... Connection timed out.
The IP address has been taken using cmd>ipconfig>Wireless Lan Adapter WiFi>IPv4 Address.
At the same time, I have the VPN running on local machine (otherwise I won't be able to connect to private cloud, where linux node is located). Is it possible that I'm getting incorrect ip via ipconfig?
So what am I doing wrong?

Install Jenkins on windows server and access it using VM's external ip [google-compute-engine]

I have created a VM instance with windows OS (windows-server-2019-dc-v20200211) in Google cloud.Established RDP connection and installed Jenkins on the VM, but how can I access it from other networks using the VM's external ip?
Could someone help me on this!!
Note: I want to install Jenkins in windows server and not on Linux.
I'll suggest you should check the following:
First, make sure your local firewall on windows server is enabled and allows connections on port 8080. Secondly, Network ACL for both incoming traffic on TCP 8080 and outcoming traffic on TCP port 8080 should be allowed.
Also check some of these stackoverflow use cases for more help: [1]https://superuser.com/questions/1212645/cannot-expose-jenkins-externally [2]https://apple.stackexchange.com/questions/31376/how-can-i-open-port-8080-of-mac-os-x-lion [3] Jenkins server is not accessible by host name (ip address)

Not able to connect to CentOS VM from Mac - (Setting up Jenkins pipeline)

I am following a course to setup Jenkins pipeline in a Linux VM.
My host machine is MacOS-mojave.
1) I started the CentOs VM via VirtualBox.
2) I SSH ed to the VM via Terminal in Mac with root user.
3) I installed Jenkins in VM. All successful.
4) I checked in a browser in the VM and Jenkins is running in port 8080.
5) I added the VM host name 'osboxes 'to Mac hosts file.
6) I cleared the DNS cache using sudo killall -HUP mDNSResponder
7) Went to the browser and hit osboxes:8080. Safari saying not able to connect.
8) I did nc -vz 192.168.1.13 8080..it says connection refused
9) I did ping 192.168.1.3 from Mac terminal and it is giving me data.
What is the problem here. Please help
In the Virtual Box configure a host only network and assign it to the Jenkins VM. I haven't tried that approach using hostname, but what I do is put a static IP to the VM so I always know it's IP... Then I can put a record on the hosts file.
I am assuming that you are using NAT networking on the VM.

Jenkins: Cannot connect slave to master

I have Jenkins on a linux server and I want to set up slave on windows virtual machine.
I created simple slave node, with launch method: JNLP.
There is no firewall on the windows machine.
I can connect both via ssh, also I can connect from linux to windows on port 52263 and from windows to linux on port 135.
Still when I try to launch the slave, it cannot be connected.
What should I check? Where could be the problem?
Then I try to connect windows slave I have to open ports at Linux firewall and set static TCP port for JNLP agents at http://jenkinsurl:8080/configureSecurity/
Also you can see extra errors at windows java console.
Choose "Launch Method as Launch agent via Java Web Start" and provide proper "Remote root directory". For more information, please go through https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines

How to provide access to Jenkins to the web

I've installed Jenkins on my mac via homebrew.
I've real ip.
How can i have access outside local network/mac? For example from other location?
You can use portforwarding on your router if you have a fixed IP from your isp
where you forward every connection from externalip:portnumber to internalip:portnumber.
Where internal ip is the ip of your mac and the portnumber is the portnumber to which your jenkins listens.
If you dont have a fixed ip you would need to use a dns provider like http://www.noip.com/

Resources