Activating GPRS (C#, .NETCF, SP2003)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I would like to be able to create client application on my Smartphone, I
mean application capable to activate internet connexion and send send data
via TCP or UDP.

I already can send data over TCP or UDP to local computer via ActivSync USB
cable or Bluetooth connexion but still can't to send data throught internet
from my mobile.

Basically I would like to be able to make my WakeOnLAN client working on my
cellphone to be able to start my computer from anywhere.

Thank you all in advance
 
For Smartphone you can either use the Connection Manager APIs - see
OpenNETCF.Net for a .NETCF implementation - www.opennetcf.org/sdf/ or create
an outgoing WebRequest which will internally make a connection manager
connection to the internet openning your default GPRS connection.

Peter
 
Well, I already tried to open connexion via WebRequest, but it seems to not
work, could you help me a bit please, I did that and since it doesn't work, I
guess I'm wrong somewhere :

WebRequest wr = WebRequest.Create("http://www.microsoft.com");
WebResponse resp = wr.GetResponse();
StreamReader stream = new StreamReader(resp.GetResponseStream());
stream.Read();

try
{
WakeUp.Send(txtMAC.Text, txtAddr.Text, port);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error");
}

resp.Close();

so, GPRS starts, I can see the little 'G' sign on the network-cover bar, but
still error, the exception message says : "The requested address is not valid
in its context"
 
Back
Top