c# and android communication

label Programming
account_circle Unassigned
schedule 3 Days
account_balance_wallet $5

i had alreay provided

Oct 18th, 2013

I don't think there is anything wrong in your server code. You are getting the output "Try i = 1" because you are writing this text to console in your server code. See the below line:

Console.WriteLine("Outside Try i = {0}", i.ToString());
try
            {
socket = listeningSocket.Accept(); . . .

It will just print this and wait till a connection is made to the server from the client. This is what I understand. Did you try to connect to the server using the client? If the connection is successful then other messages will be printed to console, or the client is not able to reach the server. 

If the client is able to reach the server and then if there are any issues, then the messages in the catch block will be printed. Can you post what messages you are exactly seeing on the screen?

Thanks!



Oct 18th, 2013

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Oct 18th, 2013
...
Oct 18th, 2013
Jun 29th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer