python - Porting domain to raspberry pi server -


i'm running flask app installed on rasperry pi , able access via local network @ internal ip , port 8080 (192.168.0.21:8080). trying access externally network.

i have netgear router i've setup forward port 8080 192.168.0.21 (my raspberry pi's internal ip). when visit aaa.bb.cc.dd:8080 (my external ip) don't see anything, doing wrong here?

this line using start app raspberry pi:

app.run(host='192.168.0.21', port=8080, debug=true) 

ideally have subdomain on domain own point @ app, point record subdomain @ external ip?

update

i've since tried several different ports (ie. 8910, 87, 22) , forwarded these raspberry pi's internal ip still no avail :/ i've taken step , made super simple hello world app , still not having luck

from flask import flask app = flask(__name__)  @app.route('/') def index():     return 'hello world'  if '__name__' == '__main__':     app.run(host='0.0.0.0', port=8910, debug=true) 

my router forwarding settings below: enter image description here

and going aa.bb.cc.dd:8910 (where aa.bb.cc.dd equals external ip).

i've tried porting port 8000 80 , forwarding pi , still nothing. enter image description here

solution

i ended porting external port 80 internal port 8000 @ static ip address raspberry pi , running raspberry pi server on port 8000. forwarded sub-domain external ip address , voila!

enter image description here


Comments