Pradap Adwani A
Pradap Adwani A

Reputation: 29

Access to Jenkins using public IP address

I've installed Jenkins on my AWS Windows system. I am able to access it within a system using http://localhost:8080/, but I can't access it outside the system using the public IP address.

http://xxx.xxx.xxx.xxx:8080/

My EC2 instance is assigned with the public IP address.

I've changed the URL in the Jenkins system configuration too.

How can I access Jenkins from outside the local system? I need the Jenkins' public access URL for linking it with GitHub WebHook.

Image

Upvotes: 1

Views: 16572

Answers (3)

Neel Soni
Neel Soni

Reputation: 11

You have to add port 8080 to security groups.

https://d1.awsstatic.com/Projects/P5505030/aws-project_Jenkins-build-server.pdf

step 1: Go to Security Groups and select your security group

step 2: click on inbound roles then click on Edit inbound rules button

step 3: Click Add Rule, and then choose Custom TCP Rule from the Type list. Under Port Range enter 8080.

Now try http://<your_public_ip>:8080 (use http:// if https:// doesn't work)

Upvotes: 0

Pradap Adwani A
Pradap Adwani A

Reputation: 29

after i created the Inbound rule inside the EC2 instance, now i can able to access the URL. ControlPanel-->system ans security --> Advance --. Allow Port 8080 [new rule]

Upvotes: 1

Sergey Kovalev
Sergey Kovalev

Reputation: 9401

Usually, there are three things you should check:

  1. Local firewall on Windows Server. If it's enabled, does it allow connections on port 8080.
  2. Network ACL for the network. Both incoming traffic on TCP port 8080 and outcoming traffic on TCP port 8080 should be allowed.
  3. Security group for your EC2 and your VPC internet gateway (if that exists). Security group should allow incoming TPC traffic on port 8080 for you IP address (or the whole world, e.g. 0.0.0.0/0).

Upvotes: 3

Related Questions