Hi! I'm trying to set up a server to run on my home computer. I have TomEE up and running, the servlet's working fine when accessed through my localhost. However, when I try to access the servlet through my IP address or my hostname, I get an Unable to Connect error. My router is set up to port forward. I have purchased a domain name and I'm using http://freedns.afraid.org to support my domain name. What am I missing?
A couple of possibilities -
1) your firewall is blocking the traffic,
2) your router is like mine and will not route to my external IP address from my local area network. To test this just use a machine outside of your local area network to access your site. For development purposes I fool the router by going through an external proxy.
Unfortunately no luck on either front. I don't have a firewall running and I can't access the site from outside of my local area network. I called my registrar and they were able to determine that it's a problem on my machine, but with registration or with my dynamic DNS host. So we're able to narrow down the problem but still not luck with resolution.
All help is appreciated.
Trying <the host ip here>...
telnet: Unable to connect to remote host: Network is unreachable
That effectively means that this issue is related to your network settings and hasn't got anything to do with TomEE. That's what my initial thought was but I wanted to make sure that I wasn't taking a guess. So at this point you'll have to figure out why the server isn't accessible from that machine. Which OS is the server machine? Depending on that there are different ways to try and figure out why the server may not be accessible.