Hi,
I am sending data over wifi through socket connection to communicate between pocket pc and pc but unable to do it.
The connection is refused. The same i can send when connecting via bluetooth.
My code for connecting is as follows:
Client: Pocket pc
- RemoteClient remoteClient = new RemoteClient(ipaddress, Int32.Parse(port));
- remoteClient.myEvent += new RemoteClient.EventDelegate(this.RemoteClient_MessageReceived);
- remoteClient.SendMessage(tag.TagID);
- Server:
- / listen on port m_serverPort
- TcpListener tcpServer = new TcpListener(m_serverPort);
-
- IPHostEntry thisHost = Dns.Resolve(Dns.GetHostName());
- ShowMessage(String.Format("Host {0} listening on {1}, port {2}",
- thisHost.HostName, thisHost.AddressList[0].ToString(), m_serverPort));
- tcpServer.Start();
- TcpClient clientConn = tcpServer.AcceptTcpClient();
-
- response = m_sendMessageText;
Please let me know for any other details needed.
Help...urgent!!!
Thanks,
Saumya