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
-
Less
More
- Posts: 1
- Thank yous received: 0
25 Apr 2023 11:52 #102446
by czabhinav
How to give domain name for IP and Port was created by czabhinav
Hi<br/>
<br/>
I am running a local python based flask app on my machine and I can access it using the url <URL url="http://192.168.1.21:5000">http://192.168.1.21:5000</URL>. 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 <URL url="http://myapp.com:5000">http://myapp.com:5000</URL><br/>
<br/>
Is there anyway to include port number in the domain name as well so that instead of <URL url="http://myapp.com:5000">http://myapp.com:5000</URL>, I can directly access <URL url="http://myapp.com">http://myapp.com</URL><br/>
<br/>
Thanks
<br/>
I am running a local python based flask app on my machine and I can access it using the url <URL url="http://192.168.1.21:5000">http://192.168.1.21:5000</URL>. 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 <URL url="http://myapp.com:5000">http://myapp.com:5000</URL><br/>
<br/>
Is there anyway to include port number in the domain name as well so that instead of <URL url="http://myapp.com:5000">http://myapp.com:5000</URL>, I can directly access <URL url="http://myapp.com">http://myapp.com</URL><br/>
<br/>
Thanks
Please Log in or Create an account to join the conversation.
- pharcyder
- Offline
- Member
-
Less
More
- Posts: 165
- Thank yous received: 1
25 Apr 2023 21:41 #102449
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.
Moderators: Admin3, Christopher
