• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I run a Java program on the Internet  RSS feed

 
Bod Toki
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a ServerSocket application that I have written and tested on my local machine. I need to run the application on the Internet (on a machine with a static IP address)and have no idea of how to go about doing that. Please please please... how can I get that done.
(I have never uploaded a java application on the Internet, not even a servlet).
Thanks.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's really not much different from running the program locally. You'll need a route to the internet, so if there's a firewall, you'll have to configure it to let requests in and if there's routers or proxies between you and the internet, you'll have to look at port forwarding. Without knowing the particulars of your server and connection, that's about all I can say.
[ September 06, 2007: Message edited by: Joe Ess ]
 
Bod Toki
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joe.
I do not have a machine that is connected to the internet. I was hoping that I could get some server that I could deploy and run the application on. The program is a socket server that "plugs" two mobile phones together (since the phones do not have a static IP), allowing them to exchange data over the GSM/GPRS. Please any thots?
 
Michael Raymond Jr.
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bod Toki:
Hello,
I have a ServerSocket application that I have written and tested on my local machine. I need to run the application on the Internet (on a machine with a static IP address)and have no idea of how to go about doing that. Please please please... how can I get that done.
(I have never uploaded a java application on the Internet, not even a servlet).
Thanks.



you set your programms listening port and hostname (ip address). if you have it at localhost change it to 192.x.x.x or whatever your IP structure is 9assuming you are behind a router), then just do port forwarding on your router with that ip/port# and traffic will be routed to you server.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bod Toki:
I do not have a machine that is connected to the internet. I was hoping that I could get some server that I could deploy and run the application on.

Many ISP's offer server packages, though most are going to be targeted at web hosting (i.e. provide you with Tomcat, MySql and a Unix shell). They may have limited network functionality because ISP's don't want people running open relays for spam and such. Call around and see if one can provide you with some space and an open connection.
My ISP is pretty friendly to the tech end user. I have a static IP and run all manner of server stuff out of my living room over my DSL connection.
[ September 07, 2007: Message edited by: Joe Ess ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!