Can anyone put some light on how to estblish a Client - Server connection.
I am tryign to use Socket class, but I am not able to get all the functionalities like Listen() and Accept().
Please tell me, which class shall I use?
Thnx...



here )










plusminus wrote:Hey guys,
please report if you had success doing TCP-Communication
Regards,
plusminus

plusminus wrote:Hello qamerfarooq,
thx for your contribution.
Could you approve your code also from emulator to another PC
Regards,
plusminus


qamerfarooq wrote:plusminus wrote:Hello qamerfarooq,
thx for your contribution.
Could you approve your code also from emulator to another PC
Regards,
plusminus
Yes i successfully executed it with my Desktop PC as Server and Android Client.
I made few changes (like replacing android logging with system.out etc.) in the TCPServer.java and executed it on my PC and successfully communicated with my desktop PC using TCPClient running on the emulator (after pointing the TCPClient to the desktop computer's IP).
Check the attached Files.

Users browsing this forum: No registered users and 2 guests