I have a node.js server listening to port 4000, the URL to access the service is something like this:
http://42.12.251.830:4000
I bought a domain name
www.mydomain.com
How can I assign it to my server? First I used forwarding, but then I could not use location.hash anymore to add a chat channel to the URL. Then I used something like Header-Redirect. Now the service is reachable under mydomain.com , but not under www.mydomain.com. Moreover the domain name is not shown in the browser window. For my chat channel I need something like this:
www.mydomain.com/#238husd4