Chase Roberts
Chase Roberts

Reputation: 9376

How do I get my JSP's online?

I feel dumb for asking this question because after searching for three hours I kept getting answers that were over my head. I am reminded that I am still very new to web programming.

I have written up a cool little application that with jsp's, a mysql database and have been hosting it locally (on the localhost) to test it and whatnot. Well, now I want to put it online. Is tomcat only for localhosting? Or is there just some funny ip address url that I could type in from another computer to gain access over the internet? Or do I have to do something special like package all my files into something special and drop them into a some third party software.

I found a little bit about port forwarding and right now if I can enter url http://localhost/priorq/queue.jsp and see my page. So I think I got the port forwarding thing figured out..

Upvotes: 3

Views: 2474

Answers (2)

HeatfanJohn
HeatfanJohn

Reputation: 7323

To expose your local JSP application to the Internet will most likely require firewall changes on the network device (router) that provides your computer with Internet access. Here is a web page that generically talks about setting up port forwarding on a router.

BEWARE!! Exposing your internal computer to HTTP port 80 traffic can make your computer vulnerable to getting HACKED! Your MySQL database is also at risk to SQL Injection depending on how your application has been written. This is especially more likely if you are new to programming and are not fully aware of the best practices for securing a web site and for writing secure code.

Here's a link to an IBM document on securing a Web server.

Upvotes: 0

kapandron
kapandron

Reputation: 3671

1) Your must have a fast internet connection if you're planning to have a high usage by visitors and don't want to get your site permanently inhibited. Pay attention to an upload speed. It's very important.

2) If you plan to develop your site for commercical purposes then you need get static local IP address from your provider. In order to users can find your site on an easy to remember URL.

3) And of course, your computer must be turned on all the time to have round the clock access to your site.

4) You need install a web server. Apache Server is excellent suitable for this mission.

5) You should open or redirect necessary ports (usually it's 80) to be able to access your site on the network.

6) And also you need to configure or disable a firewall to allow traffic through on port to reach your web server software.

Here are 2 good references on this topic:

Host my web site on home computer

Advantages and shortcomings of home hosting

Upvotes: 2

Related Questions