This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes [SOLVEDkindof]i'm hosting, now how do i access over internet from non-local computer? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "[SOLVEDkindof]i Watch "[SOLVEDkindof]i New topic
Author

[SOLVEDkindof]i'm hosting, now how do i access over internet from non-local computer?

David Westbrook
Greenhorn

Joined: Dec 18, 2008
Posts: 16
Ok, so I installed apache tomcat 6 on windows vista.

I have it working, and the home page with links to examples and management page shows up when I go to link:

http://localhost:8080/

So I'm pretty sure I have it working the way it is supposed to. According to the config window, the service is started. So, as far as I can tell I should be hosting.

But, how do I access this over the internet? Do I have to register a dns or something?

This is what I have been trying...

http://myIPaddress:8080/

and I get typical link broken/can't display webpage error

I have also tried

http://myIPaddress/

but this just brings me to my router config page.

Do I need to configure my router? Register a DNS? I've spent the better part of a few hours searching for this info, and you would think that there would be tons of walkthroughs/trouble shooting pages on this, but I have yet to find any. Please help me out with some advice or at least point me to some useful resources.

Regards and thanks in advance.

[ December 18, 2008: Message edited by: david noneofurbus ]
[ December 18, 2008: Message edited by: david noneofurbus ]
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8876
    
    8

You need to tell your router to forward connections coming from the internet on port 80 to your local machine's port 8080. This site should get you started.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
David Westbrook
Greenhorn

Joined: Dec 18, 2008
Posts: 16
Ok, that gave me a lot of info, but I'm still having problems.

I set up static ip, and tried to set up port forwarding from this walkthrough:

http://portforward.com/english/routers/port_forwarding/Linksys/WRT350N/Apache.htm

It said I had to forward 80 to 80 and 443 to 443, but that didn't work so instead I just tried one row. I set the external port to 80 and the internal to 8080 and I put in the static IP I created. But I get the following message:

"Port overlap occurred! Please change your entry!"

I change the protocol from UDP to TCP and that doesn't give me error, but I am going to be using youtube api for my web app and possibly streaming video, so I'm pretty sure I am going to need UDP protocol as well. Any suggestions?

So this is my setting so far:

App name: Apache
External Port: 80
Internal Port: 8080
Protocol: TCP(Leaving this as both gives me "Port overlap occured!" error)
IP address : I just change this to the static IP I set up
Enabled: YES

Any resource or configuration suggestions would be appreciated.
David Westbrook
Greenhorn

Joined: Dec 18, 2008
Posts: 16
i'm able to see my web server going here in web browser:

http://localhost:8080/

but when i try to access outside of my network:

http://myIPaddress:8080/

connection just times out.

I set up port forwarding on my router like this (NOTE: I set up TCP and UDP individually b/c when I try BOTH, I get Port Overlap error ):

Name: Apache1
External: 8080
Internal: 8080
Protocol: TCP
IP: A static IP that I created
Enabled: YES

Name: Apache2
External: 8080
Internal: 8080
Protocol: UDP
IP: A static IP that I created
Enabled: YES

I installed Apache Tomcat 6 w/defaults. Do I need to change Apache config? Is it possible my ISP is blocking port?
David Westbrook
Greenhorn

Joined: Dec 18, 2008
Posts: 16
i'm able to see my web server going here in web browser:

http://localhost:8080/

but when i try to access outside of my network:

http://myIPaddress:8080/

connection just times out.

I set up port forwarding on my router like this (NOTE: I set up TCP and UDP individually b/c when I try BOTH, I get Port Overlap error ):

Name: Apache1
External: 8080
Internal: 8080
Protocol: TCP
IP: A static IP that I created
Enabled: YES

Name: Apache2
External: 8080
Internal: 8080
Protocol: UDP
IP: A static IP that I created
Enabled: YES

I installed Apache Tomcat 6 w/defaults. Do I need to change Apache config? Is it possible my ISP is blocking port?
David Westbrook
Greenhorn

Joined: Dec 18, 2008
Posts: 16
so, i guess the prob is not w/setting up my ports b/c my isp is going to block me no matter what i do (don't get comcast if you can help it)

i set up exact same apache install on my buddies server and it works fine for accessing outside of local network. so i guess you need to make sure it is even possible for you to host given your isp's restrictions.

thnx for help though, i def learned a lot even though i didn't achieve the desired result.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61084
    
  66

"david noneofurbus", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

"dkwestbr" please see your private messages again.


SCJP, SCWCD.
|Asking Good Questions|
 
wood burning stoves
 
subject: [SOLVEDkindof]i'm hosting, now how do i access over internet from non-local computer?