[英]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:
你在那里可以看到什么:
most lickely missconfiguration on source
most lickely missconfiguration on source
most lickely missconfiguration on dest
most lickely missconfiguration on dest
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.