2

I am running a flask web server on raspberry pi 3 B+. I am able to access the page 192.168.4.1:5000 on the berry(chromium).

The same raspberry pi is also acting as a wireless LAN router. I am able to connect my other devices like ipad and phone to this wifi network. So there is no additional router in this network where I might need to do port forwarding.

Issue is, I am not able to access 192.168.4.1:5000 from any other device on this local network.

Please note that I am not using the ethernet port on the raspberry pi.

Please help!

Aviv Yaniv
  • 6,188
  • 3
  • 7
  • 22
Jessica
  • 31
  • 4

2 Answers2

1

Okay so the solution was to add a route. I did sudo ip route add 192.168.4.0/24 via 192.168.4.1 dev wlan0

Now I am trying to figure out how to make this route persistent.

Jessica
  • 31
  • 4
0

Use a port scanner to find the ip such as: Port Droid

You can also use NMAP for Windows or MacOS

You can also try this:

if __name__ == '__main__':
app.run(host='0.0.0.0')

It will make the server externally visible.

null_override
  • 467
  • 3
  • 10
  • 30