Click here to Skip to main content
15,890,882 members
Please Sign up or sign in to vote.
1.00/5 (1 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
Comments
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 : 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 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.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900