1

I am very new to AWS and Devops part, I read some official documentation and I installed Jenkins server in my ec2-instance it's successfully installed and it's running also ,when i try to open by using http://my-public-ip:8080 it's not opening. How to open my Jenkins dashboard in my web browser?

This is my Jenkins server status

This is my EC2 instance inbound rules:

This is Ec2 instance inbound rules

When I am trying to search in my browser it's showing some thing like this:

This site can't be reached13.235.67.157 took too long to respond.

Try:

Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_TIMED_OUT
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Devops Training
  • 221
  • 3
  • 15

3 Answers3

2

I would suggest go to your security group of this instance which is launch-wizard-5 Edit it and You have to choose "Custom TCP rule"

Then you will be able to add the port to 8080

  • Wait for second
  • and open http://my-public-ip:8080 in your favorite browser
  • You'll able to access your Jenkins GUI This is how to add port
Prabhat Singh
  • 891
  • 8
  • 17
0

Jenkins uses a specific port: 8080

To verify this, inside of your jenkins shell try this:

try with netstat -plnt.

and

curl localhost:8080 -v

If you have a valid response showing you that 8080 port is online, your jenkin is ready to use. Just configure the 8080 port in your AWS inbound rules. Finally you will be able to access with:

http://my-public-ip:8080

If you achieve that, your next goal must be to hide the 8080 port. For that you could use the ELB to assign a custom domain if you have someone.

JRichardsz
  • 14,356
  • 6
  • 59
  • 94
  • < HTTP/1.1 403 Forbidden < Date: Fri, 30 Jul 2021 04:25:02 GMT < X-Content-Type-Options: nosniff < Set-Cookie: JSESSIONID.a3d32962=node01xomm08zuv52uz07sepp9we4o1.node0; Path=/; HttpOnly < Expires: Thu, 01 Jan 1970 00:00:00 GMT < Content-Type: text/html;charset=utf-8 < X-Hudson: 1.395 < X-Jenkins: 2.304 < X-Jenkins-Session: b4395941 < Content-Length: 541 < Server: Jetty(9.4.42.v20210604) i am getting like this when i run curl cmd – Devops Training Jul 30 '21 at 04:26
  • #1 8080 port? #2 refresh the page, I updated it! – JRichardsz Jul 30 '21 at 04:28
0

Add security groups

ALLTraffic
0.0.0.0/0

Then refresh the page

Sravani
  • 367
  • 1
  • 3
  • 17