Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to 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 2-Jun-13 16:02pm
Comments
Sergey Alexandrovich Kryukov at 2-Jun-13 21:09pm
   
What's the problem? What did you try?
—SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

As you can use Java on both platforms, what's the problem? Start from here: http://www.tutorialspoint.com/java/java_networking.htm[^].
 
—SA
  Permalink  
Comments
Member 9971256 at 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 at 3-Jun-13 9:29am
   
Come on, you cannot "host" anything on localhost by definition:
 
http://en.wikipedia.org/wiki/Localhost
 
—SA
Member 9971256 at 3-Jun-13 16:20pm
   
i'm still working on my simulator on the lab ,,,
what's your suggestion please
Sergey Alexandrovich Kryukov at 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 at 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)

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 150
2 Richard MacCutchan 135
3 Andreas Gieriet 100
4 DamithSL 95
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,260


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 3 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