简体   繁体   English

无法使用端口8080访问在Raspberry Pi上运行的Jenkins

[英]Can't access Jenkins running on a Raspberry Pi using port 8080

I'm trying to access my jenkins service running on port 8080 through my local network, but for some reason it is not allowing me to connect. 我正在尝试通过我的本地网络访问在端口8080上运行的jenkins服务,但由于某种原因它不允许我连接。 I can remote into the pi and launch a web browser and type in localhost:8080 and it works fine. 我可以远程进入pi并启动一个Web浏览器并输入localhost:8080,它工作正常。

This is a bare bones installation of raspbian and I have not installed a firewall on it, so not sure why I would not be able to access jenkins on my local network. 这是raspbian的简单安装,我没有安装防火墙,所以不知道为什么我无法访问本地网络上的jenkins。

If this is true, 如果这是真的,

I can remote into the pi and launch a web browser and type in localhost:8080 and it seems to work fine. 我可以远程进入pi并启动一个Web浏览器并输入localhost:8080,它似乎工作正常。

you can focus on firewall/iptables/routing/ip configuration issues, so let's go ahead with those. 你可以专注于防火墙/ iptables /路由/ IP配置问题,所以让我们继续这些。

Let's say your Raspberry Pi has ip 192.168.0.10/24 and you are accessing from a device on the same network. 假设你的Raspberry Pi有ip 192.168.0.10/24 ,你正在从同一网络上的设备访问。

Firewall 火墙

You said it is dissabled, so we can forget about it. 你说这是不可能的,所以我们可以忘掉它。

Iptables iptables的

Check what rules you have 检查你有什么规则

iptables -L

flush all of them for testing in case there's any 如果有的话,冲洗所有这些以进行测试

iptables -F

Routing 路由

You are on the same network, so there shouldn't be problems here. 你在同一个网络上,所以这里不应该有问题。

Ip Configuration Ip配置

ping 192.168.0.10

Not working? 不工作? Then check your configuration 然后检查您的配置

route -n
ifconfig

Everything as it should? 一切应该如何? ping again while you execute 执行时再次ping

tcpdump -i eth0 -n #(or use whireshark if possible)

on both machines. 在两台机器上。 You will be able to see there what's going on. 你将能够看到发生了什么。 What you can see there: 你在那里可以看到什么:

  • Request is not being sent => most lickely missconfiguration on source 请求未被发送=> most lickely missconfiguration on source
  • Request is being sent and answer not => most lickely missconfiguration on dest 正在发送请求并且不回答=> most lickely missconfiguration on dest
  • Both are being sent, but answer is not recieved => missconfiguration of firewall on source or routing problem (probably not your case) 两者都被发送,但答案没有收到=> missconfiguration of firewall on source or routing problem (probably not your case)

If everything above works and is as it should, you then have to focus on the service running on the Pi. 如果以上所有内容都能正常运行,那么您必须专注于在Pi上运行的服务。 Is it listenning on every IP and accepting connections from anywhere (or at least your network)? 它是在监听每个IP并从任何地方(或至少是您的网络)接受连接吗?

If not, change your configuration and you should be good and running. 如果没有,请更改您的配置,您应该运行良好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Raspberry Pi上的Jenkins在LAN上不可见 - Jenkins on Raspberry Pi not visible on LAN 不带ip访问树莓派 - Access raspberry Pi without ip 错误:没有进程使用8080端口时,侦听EADDRINUSE ::: 8080 - Error: listen EADDRINUSE :::8080 when no process is using 8080 port 从外部访问 Raspberry PI Django 服务器 - Access Raspberry PI Django server from outside 我怎样才能杀死任何正在使用端口 8080 的进程,以便我可以启动 vagrant? [关闭] - How can I kill whatever process is using port 8080 so that I can vagrant up? [closed] Hosting Panel Pterodactyl 无法访问它的守护进程,连接到端口 8080 超时 - Hosting Panel Pterodactyl can't reach it's daemon, connections to port 8080 timeout 无法从远程访问Docker端口 - Can't access docker port from remote 使用 SSH 在 Raspberry Pi 上执行一个命令,该命令可以在另一个 Raspberry Pi 上运行 .py 脚本 - Execute on Raspberry Pi using SSH a command that let run a .py script on another Raspberry Pi 在家庭网络外访问 Raspberry pi 上的数据库的安全方式 - Secure way to access DB on Raspberry pi outside home network 无法从家庭网络访问连接到 3g 的 Raspberry Pi - Cannot access Raspberry Pi connected to 3g from home network
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM