How to redirect domain to the ip with specified port instead of port 80 when accessing with browser?
For example, accessing example.com in browser will pointed to 127.0.0.1:33333
How to redirect domain to the ip with specified port instead of port 80 when accessing with browser?
For example, accessing example.com in browser will pointed to 127.0.0.1:33333
This sounds like you want a 'Reverse Proxy'.
You can look at NGINX.
Or if you are looking for an easy personal option, look at CaddyServer.
There are several ways you can redirect the browser.
Something like this in the head section of your HTML file:
<meta http-equiv="refresh" content="0; URL='http://127.0.0.1:33333'" />
You could do it with Javascript:
window.location = "http://127.0.0.1:33333";
This site gives a great explanation of redirecting. I have it bookmarked...
hth,
David