DrayTek UK Users' Community Forum

Help, Advice and Solutions from DrayTek Users

How to give domain name for IP and Port

  • czabhinav
  • Topic Author
  • Offline
  • New Member
  • New Member
More
25 Apr 2023 11:52 #1 by czabhinav
How to give domain name for IP and Port was created by czabhinav
Hi

I am running a local python based flask app on my machine and I can access it using the url http://192.168.1.21:5000. I am using Draytek Vigor 2865 router and I want to give a domain name for the flask url but I didn't find any option to do this. So what I have done is I have given domain to the IP by going into Applications -> LAN DNS/DNS Forwarding so now I can access flask app using url http://myapp.com:5000

Is there anyway to include port number in the domain name as well so that instead of http://myapp.com:5000, I can directly access http://myapp.com

Thanks

Please Log in or Create an account to join the conversation.

More
25 Apr 2023 21:41 #2 by pharcyder
Replied by pharcyder on topic Re: How to give domain name for IP and Port
No, it doesn't work that way. You could deploy a Reverse Proxy like Nginx Proxy Manager. Point your hostname at that and have that proxy your traffic to IPAddress:Port

Please Log in or Create an account to join the conversation.