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. I can remote into the pi and launch a web browser and type in localhost:8080 and it works fine.
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.
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.
you can focus on firewall/iptables/routing/ip configuration issues, so let's go ahead with those.
Let's say your Raspberry Pi has ip 192.168.0.10/24
and you are accessing from a device on the same network.
Firewall
You said it is dissabled, so we can forget about it.
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
ping 192.168.0.10
Not working? Then check your configuration
route -n
ifconfig
Everything as it should? ping
again while you execute
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 dest
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. Is it listenning on every IP and accepting connections from anywhere (or at least your network)?
If not, change your configuration and you should be good and running.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With