Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Java
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 13-Jun-13 0:32am
sash_kp367
Comments
Shubhashish_Mandal at 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 at 13-Jun-13 7:15am
   
I found my public ip from this site : http://ip.w69b.com/ 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 at 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 at 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 at 13-Jun-13 7:46am
   
if your laptop has a public IP the run the server code in your laptop.
sash_kp at 13-Jun-13 9:21am
   
Okay.. Thanks for your concern..":)"
Richard MacCutchan at 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 at 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 at 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 at 13-Jun-13 10:50am
   
Actually i am gonna get my server hosted within a few days(a free server from http://serversfree.com ),Do you think they provide facilities like these automated operations and all?
Richard MacCutchan at 13-Jun-13 10:58am
   
No idea whatsoever, you need to ask them.
sash_kp at 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
0 OriginalGriff 459
1 Maciej Los 325
2 Sergey Alexandrovich Kryukov 234
3 DamithSL 233
4 BillWoodruff 200
0 OriginalGriff 7,168
1 Sergey Alexandrovich Kryukov 6,377
2 DamithSL 5,461
3 Manas Bhardwaj 4,876
4 Maciej Los 4,450


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 13 Jun 2013
Copyright © CodeProject, 1999-2014
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