Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi if i have two application one acts as "Server Side" witch is java desktop application and the anther acts as "Client Side" mobile application ,,,, so how can i connect them ?
Posted
Comments
Sergey Alexandrovich Kryukov 2-Jun-13 21:09pm    
What's the problem? What did you try?
—SA

1 solution

As you can use Java on both platforms, what's the problem? Start from here: http://www.tutorialspoint.com/java/java_networking.htm[^].

—SA
 
Share this answer
 
Comments
Member 9971256 3-Jun-13 6:54am    
yes exactly what i've done is similar to this link : http://www.tutorialspoint.com/java/java_networking.htm[^]


but the difference that i made:
1- the name of the server is "local host" and the port is 2323
2- the client on the android studio simulator

but the connection doesn't work
Sergey Alexandrovich Kryukov 3-Jun-13 9:29am    
Come on, you cannot "host" anything on localhost by definition:

http://en.wikipedia.org/wiki/Localhost

—SA
Member 9971256 3-Jun-13 16:20pm    
i'm still working on my simulator on the lab ,,,
what's your suggestion please
Sergey Alexandrovich Kryukov 3-Jun-13 16:25pm    
Suggestion? Read the documentation I referenced, try it out, accept my answer formally, keep working. What part is unclear?
—SA
Member 9971256 4-Jun-13 7:05am    
ok thanks i'll do

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