Click here to Skip to main content
13,045,019 members (42,570 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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.
Posted 12-Jun-13 23:32pm
Shubhashish_Mandal 13-Jun-13 6:42am
yes its possible. Put the server side code in a computer which has a public IP , then you able to do it.
sash_kp 13-Jun-13 7:15am
I found my public ip from this site : Which means my lappy has a public ip right? Then i ran the server program from cmd as usual. And ran the client program on another lappy,changing the ip there,to this public ip. And it didn't work! Should i compile my server program in some different manner like changing ip manually or some stuffs like that?
Shubhashish_Mandal 13-Jun-13 7:28am
check the port for server & client . Also check the port is open or not and if not working then check the firewall settings
sash_kp 13-Jun-13 7:26am
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 command prompt from my laptop(I am not familiar with IDEs yet)? In that case what's the significance of uploading it to the server if finally i am gonna compile it in my laptop's cmd command prompt? How to execute the program file on server?
Shubhashish_Mandal 13-Jun-13 7:46am
if your laptop has a public IP the run the server code in your laptop.
sash_kp 13-Jun-13 9:21am
Okay.. Thanks for your concern..":)"
Richard MacCutchan 13-Jun-13 9:04am
You don't put the Java code on the server, you put the class files that are created by the Java compiler. If you don't understand the basics of how Java programs work then you will find more difficulty with this. Take a look at the Java Tutorials for more information.
sash_kp 13-Jun-13 9:20am
Yep got it!..And what about running the .class file then? From the command prompt or does the server provide with the some facilities for that? Thanks ":)"
Richard MacCutchan 13-Jun-13 10:45am
Java is generally run from the command prompt, but you can automate this at the server in various ways so that it would start after a reboot.
sash_kp 13-Jun-13 10:50am
Actually i am gonna get my server hosted within a few days(a free server from ),Do you think they provide facilities like these automated operations and all?
Richard MacCutchan 13-Jun-13 10:58am
No idea whatsoever, you need to ask them.
sash_kp 13-Jun-13 11:00am
Alrighty! Thanks..":)"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 13 Jun 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100