Hello guys so I wanted to be able to host an API on a raspberry and acces it from computers that are on another networks.
this is my simple code that's just for test as I need only to be able to acces it remote with the public ip
import flask
from flask import request
app = flask.Flask(__name__)
@app.route('/', methods=['GET'])
def home():
return '123'
app.run(host='0.0.0.0', port=3138)
So I have created a port forward in my router option on the port 3138 linked with the static internal ip of the raspberry and I tried to acces it remotely like this: <public_ip>:3138/ it should show "123" but it shows nothing, it won't even load, do you have any ideeas how to be able to acces it in this way ?