I turned my pc into router by allowing port forwarding on port 80 and got my hostname(xyz.donexist.org) registered through dyndns.com. Now when I type my public IP address in browser I get redirected to my browser.
I have installed glassfish and have my website deployed in glassfish. I want that when I type xyz.donexist.org my website should be opened. What steps more do I need to take? I have made a entry in etc/hosts file as :-
127.0.0.1 xyz.donexist.orgPlease guide me. I am and beginner.
3 Answers
Some routers does not like when the traffic does a U-turn (exits the router then goes right back in again to your web-server)
But to check if that is the case you can try this excellent service:
Is it down for everyone or just me?
If this is the case either change your routers behaviour (if possible) or use one of the many free proxies found on line. I use Hide My Ass not because it's particularly good but because I always remember the name.
First, unless you want to access your site via IP address, you'll need a domain name. The simplest option is to use a service such as DynDNS to forward a third-level domain to your IP address, such as nitesh.dyndns.org. If you would prefer a second-level domain, you'll need to purchase this from a registrar. You can use DynDNS for that too, but I'd instead recommend Go Daddy: their prices are very reasonable and they provide good tools for managing your domains.
Also, unless you've purchased business-class Internet service, there's a good chance your ISP blocks inbound port 80. In that case, you would need to choose a different port to run your web server on, then access the website by navigating to something like .
3So your PC that's acting as a router is really acting as a NAPT gateway, and port 80 on your router is forwarded to port 8080 (GlassFish's default HTTP service port) on your GlassFish server box? And GlassFish is listening on port 8080 of that box?
If that's the case, then you should be getting a page served from GlassFish when you connect to port 80 on the public IP address of your router and issue an HTTP GET. If you're getting some sort of page served by your router, then port forwarding is not actually working on your router. Do you have some sort of HTTP server software package listening on port 80 on your router? Is it possible that that HTTP server is reserving port 80 and your NAPT gateway code isn't able to override that to forward those connections over to your GlassFish box?
Or maybe you forwarded port 80 to port 80 (instead of 8080), and you've got your OS's built-in HTTP server running on port 80 of the GlassFish box, and when you connect to it and get the default generic "you haven't set up your webserver yet" message, you thought it was coming from the router PC when it was actually coming from the PC you're running GlassFish on?
1