Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client/Server Socket Question

 
Daniel Simpson
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, I'm just learning about how to do socket networking in Java and I had a question. I wrote a program that contains a simple client/server application where the client and server can talk back and forth. I've tested it on my computer, but I was wondering how I actually have it run from my website. I want to have my server class on the server i'm using, and when i run my client class from my computer, it connects to the server class on my site. How would I go about doing that, so my server class is already executing when i attempt to connect with the client? thanks!
 
Warren Dew
blacksmith
Ranch Hand
Posts: 1332
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your server is hosted by someone else, right?

You will need to upload your server application to the server host machine, then log in to that machine and run your server application (or have someone there do it). Once it's running, you can try connecting with your client.

Note that some web site hosting providers only permit hosting of web sites, and don't allow you to run your own server applications.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic