Jump to content

Hello,

 

I am trying to get my subdomain to a specific port on my own IP, but I can not get it to work. I have forwarded my IP on the port, I have created the subdomain linking to my domain, but the issue is I can only link to my IP but not attach a port onto that IP

 

Thank you.

 

[EDIT]

Realized I should give some more information

 

I have my domain www.example.com

 

and I created a subdomain in the DNS records called dev.example.com and pointed it at my home IP, because I am hosting a Redmine server at home, how do I get redmine to realize/the subdomain to realize I want it pointed at port 80 where redmine is running off, thank you.

Edited by BenneMus
Link to comment
https://linustechtips.com/topic/385019-need-help-with-domain-forwarding/
Share on other sites

Link to post
Share on other sites

Hello,

 

I am trying to get my subdomain to a specific port on my own IP, but I can not get it to work. I have forwarded my IP on the port, I have created the subdomain linking to my domain, but the issue is I can only link to my IP but not attach a port onto that IP

 

Thank you.

 

[EDIT]

Realized I should give some more information

 

I have my domain www.example.com

 

and I created a subdomain in the DNS records called dev.example.com and pointed it at my home IP, because I am hosting a Redmine server at home, how do I get redmine to realize/the subdomain to realize I want it pointed at port 80 where redmine is running off, thank you.

 

 

1.) Make sure your ISP hasn't blocked port 80

2.) Make sure you are on a static ip address otherwise when your IP address changes, you need to update DNS with the new IP Address.

 

Also, http:// defaults to port 80. You do not need to specifically point it to port 80. But if you pointed to the IP Address and forwarded port 80 to the right internal ip address then it sounds like ISP might not like you running a web server.

Link to post
Share on other sites

Hello,

 

I am trying to get my subdomain to a specific port on my own IP, but I can not get it to work. I have forwarded my IP on the port, I have created the subdomain linking to my domain, but the issue is I can only link to my IP but not attach a port onto that IP

 

Thank you.

 

[EDIT]

Realized I should give some more information

 

I have my domain www.example.com

 

and I created a subdomain in the DNS records called dev.example.com and pointed it at my home IP, because I am hosting a Redmine server at home, how do I get redmine to realize/the subdomain to realize I want it pointed at port 80 where redmine is running off, thank you.

 

You can't have a domain resolve to a port in most cases. So, to access anything, you will need to put in sub.example.com:1234 - you can't have sub.example.com = 1234. 

 

However, you can set up a simple URL forwarding to redirect a visitorfrom sub.example.com to sub.example.com:1234 Sometimes this can be enabled in your DNS provider: https://www.namecheap.com/support/knowledgebase/article.aspx/545/51/how-do-i-set-up-url-forwarding-when-i-use-your-free-dns-service for example.

 

Otherwise you can set up an html redirect by placing an index.html file in your sub.example.com directory containing:

<!DOCTYPE html><html><head>   <!-- HTML meta refresh URL redirection -->   <meta http-equiv="refresh"   content="0; url=http://sub.example.com:1234"></head><body></body></html>

D3SL91 | Ethan | Gaming+Work System | NAS System | Photo: Nikon D750 + D5200

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×