I developed a client server based java networking Instant Messaging app. The client program is needed to be run on the client computer whereas the server program is on server computer. This works in my local wi-fi network(Home network). But i want this one to deploy on internet using some servers and so,so that my friend who is in another city can run the client program from there. Would it be possible for me to do this? I tried to learn heroku techniques for java but its hard for me to understand.
sash_kp
0
Newbie Poster
Recommended Answers
Jump to PostYes, it's completely possible.
All you need is to run your server program on a computer that your client can connect to. For example that could be your own computer if you configure your router/firewalls to make it accessible from the web, or you could use a commercial hosting service.
Jump to PostYou compile the program on your machine and make an executable jar file containing all your compiled classes (and any other resources it needs). You can then execute that jar file on any other machine that has a JRE installed.
See
All 7 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
sash_kp
commented:
Well if i host it in a server,then after uploading it to that server how to compile the java program? I mean using the cmd from my laptop? In that way what's the significance of uploading it to the server if finally i am gonna compile it in my laptop's cm
+0
sash_kp
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
sash_kp
commented:
Yep got it! And what about running(executing) the server program which is needed to be executed on the server? After compiling shouldn't i execute them?
+0
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
sash_kp
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
sash_kp
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.