Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi everyone,

C#
TcpListener list = new TcpListener(new IPEndPoint(IPAddress.Parse("192.168.1.36"), 11000));
list.Start();
 
list.BeginAcceptTcpClient(AcceptCallback, null);

I'm write that code into my Server and I can connect Server with Windows Client.


Java
s = new Socket("192.168.1.36", 11000);

I'm write that code into my Android Client side and I can't connect to my Windows Server.
Android Client doesn't send to connection request in my server.


I write C# code into my server and android uses Java language. Is this a problem?

What is the problem? I give the permission this permission too,
XML
<uses-permission android:name="android.permission.INTERNET"/>
Posted
Comments
Afzaal Ahmad Zeeshan 1-Aug-15 7:53am    
I have no idea of this, I would recommend that you debug your application.
Richard MacCutchan 1-Aug-15 8:35am    
This is a repost of your existing question. Please use Improve question, rather than posting the same question again.

1 solution

Lots of samples to be found by https://www.google.com/search?q=android%20sockets[^].
 
Share this answer
 
Comments
Umut Comlekcioglu 1-Aug-15 9:21am    
Yes there is a lots of samples but they aren't solve my problem. I need to communication between Android Mobile Phone (Client) and C# .NET Computer(Server). But I can't create a connection between Mobile phone and Windows PC.
Richard MacCutchan 1-Aug-15 10:17am    
Yes, you keep saying that, but we cannot guess what the problem may be. I suggest you follow one of the tutorials or samples in the link I gave you.

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