Access a flask app through Spacebridge


#1

I am able to ssh to my Raspberry Pi using Spacebridge tunneling. However, I am trying to access a flask app remotely but no luck. The app is running in localhost port 5000, and I am connecting through the Spacebridge using the same port. I tried using different ports and no luck. Can somebody help me understand what I need to do to access the remote flask app?

Thanks,


#2

Is the app listening for external connections?


#3

As I understand it, to make Flask externally visible I have to run it like this:

app.run(host=‘0.0.0.0’)

And I am doing that. Would this be enough?


#4

Yeah… seems like that should be good. What does the route command print on the Pi?

In Spacebridge you have 5000 as the device port?


#5

Route:

pi@raspberrypi:~ $ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     0      0        0 ppp0
10.64.64.64     *               255.255.255.255 UH    0      0        0 ppp0
link-local      *               255.255.0.0     U     318    0        0 wwan0

#6

Also, yes I have 5000 as the device port.

Thanks,


#7

Hi @Reuben, Do you have an idea about how to solve this?

Thanks,


#8

Hey, sorry we never got back to you about this. Still the same issue? Is that routing table still correct? That looks fine for what you need to do?
Does this work if you plug in ethernet and try to connect on your local network?