This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Server client java app and internet hosting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Server client java app and internet hosting" Watch "Server client java app and internet hosting" New topic
Author

Server client java app and internet hosting

Ed Dablin
Ranch Hand

Joined: Oct 09, 2012
Posts: 32
Hi. I've just started to learn about sockets, serversockets and establishing a simple server using stream sockets.
I have a very simple server and client application working on my LAN between my iMac and PC. So far so good.
I now want to put my server on the WAN i.e. the internet.
My question is, will an internet hosting company allow my java server app to open a socket? Do I need to ask for a special kind of access?
I don't want to sign up to a hosting deal to find out they only permit web pages, emails and FTP.
By the way, hosting on my company's server doesn't work due to security restrictions.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
That varies by hosting company and plan. I'm sure the customer service of whichever providers you consider will be happy to answer this.


Ping & DNS - updated with new look and Ping home screen widget
Ed Dablin
Ranch Hand

Joined: Oct 09, 2012
Posts: 32
I guess I'm asking: does my question make sense? Do you guys routinely run your java non-HTML apps on hosted sites or am I asking something unusual?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18155
    
    8

Well, frankly just the idea of running a hosted application which isn't a web application is in itself unusual. That's not to say that such applications are nonexistent, just that they are uncommon.
Ed Dablin
Ranch Hand

Joined: Oct 09, 2012
Posts: 32
Paul Clapham wrote:Well, frankly just the idea of running a hosted application which isn't a web application is in itself unusual. That's not to say that such applications are nonexistent, just that they are uncommon.


OK I've check with my ISP and my question has thrown them into a state of confusion and talk of big bucks. So I guess the Head First Java chapter 15 *Daily Advice Server* is not the basis for a larger app.
Searching around, I have come across Java Servlets and Java Server Pages. If I want to develop an implement a server based application that can be hosted on the internet and used by other people, should I learn more about servlets and JSPs? Feeling a bit lost here and wouold appreciate a pointer which way to go in my education
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
Servlets and JSP would be the way to go if you want to host a web app - which, as Paul mentioned, is by far the most common type of hosted app.

"Big bucks" - I wouldn't say so. Java web hosting starts at about $10/month, and for around $20/month you can get quite decent plans.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Server client java app and internet hosting
 
Similar Threads
Socket Architecture questions
About deployment
using Java with an internet based mySQL Server?
What do people do when waiting for results?
custom midlet-servlet chat app problem