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!
SCJP 1.4<br />SCJD 1.4
posted 11 years ago
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.