Sign in to follow this  

another port forwarding problem

This topic is 4300 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there. I am writing my first networking code, and made a little test app. I have Tomcat server, which is working fine, made a servlet, which also works fine on localhost, and now I made a c++ app using the WinHttp lib, which locally connects to the Tomcat, gets the 'hello world' from my servlet - all this is very cool. But I can't get this working outside of a localhost connection. I have a belkin router, model F5D7231-4, and I've done port forwarding before - I have azureus and emule all good with that. So I'm not sure what's up. As per advice here in earlier threads, I am using incoming port 15951 ( why not ), which I have also configured Tomcat to listen to. Tomcat used to be on port 80, but just for the sake of testing this problem I changed it to 15951 for now, until I solve this problem. My IP is 68.174.140.19. There is surely nothing wrong with my code, as this is working fine on localhost. The test of success should simply be that the address : 68.174.140.19:15951 should show the Tomcat front page. Any ideas here? [Edited by - squirrel_of_death on May 2, 2006 8:12:15 PM]

Share this post


Link to post
Share on other sites
Yay, that is very good news. Thanks!

But, then the question remains, why can't I see it? OK, so I type the ip:port, and this goes straight to the router ( it must, as my laptop does not know the real IP 68.174.140.19, it thinks its something else given to it by the router - therefore there is no short-cirtuiting going on, it must go to the router ). Then the router presumably says, aha, this is for me, let's redirect to the right computer - which is back to mine. Fine again. This actually works, without the port number in the address. But when I add the port address, I get 'can't connect', ie. no server at the other end. So any ideas what's up with this? It would be *really* nice if I could develop further with the pure IP / port variables. Not the end of the world mind you, but nice.

[Edited by - squirrel_of_death on May 2, 2006 8:12:25 PM]

Share this post


Link to post
Share on other sites

This topic is 4300 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

Sign in to follow this