

Serversocket = tcpListener.AcceptSocket() WriteConsole("Server listening to port: " + port) If (listip.AddressFamily = AddressFamily.InterNetwork) TcpListener = new TcpListener(ipAd, port) IPAddress ipAd = IPAddress.Parse(listip.ToString())

Ip = (hostname) įoreach ( listip in ip.AddressList) This is the server C# implementation: CheckForIllegalCrossThreadCalls = false Output = new PrintWriter(new BufferedWriter(new OutputStreamWriter(s.getOutputStream())),false)

The server has a listener who listens on the same port(4444) Socket s = new Socket(SERVER_ADDRESS, 4444) What it should do is to send a token to the server. This is the android client code implementation. I've created an Android application who should send a token to a C# server.
