udp client windows mobile over gprs RRS feed

  • Question

  • The following code works sending data using udp to a server.  The data is sent from a PC over an ethernet connection.  However, when I use the same code trying to send data from a windows mobile device over cellular (telus, rogers, at&t, verizon, etc) no data is seen at the server.  Furthermore, an error message is not returned and the number of bytes sent is returned (like the packet was successfully sent). 

    Does anybody have any ideas on how to send data over udp over a cellular network.


    udpRemoteServer = New UdpClient

    //Setup connection with IP address and port
    CType(hsRemoteServer.nDestinationPort, Integer))

    //Convert data to bytes
    PacketBytes = System.Text.Encoding.ASCII.GetBytes(sDataPacket)

    //Send data, returns number of bytes sent
    nBytes = udpRemoteServer.Send(sPacketBytes, sPacketBytes.Length)

    Thanks in advance for any help.



    Monday, March 23, 2009 4:57 PM