Is it possible to send IP packets with C# ?

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

Guest

Hello,

Is it possible to easily send ip packets with cSharp (ie. magic packet for
wake on lan purpose)

Rgds.
 
Hello, Deephazz!

D> Is it possible to easily send ip packets with cSharp (ie. magic packet
D> for wake on lan purpose)

If you know packet binary structure, it will be simple.
To send raw data to the network you can use Raw sockets
Socket s = new Socket(...., SocketType.Raw, .... );

However, XP SP2 has some limitations
Take a look at
( http://www.interact-sw.co.uk/iangblog/2004/08/12/norawsockets )
( http://blogs.msdn.com/michael_howard/archive/2004/08/12/213611.aspx )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top