Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0
How can i read data from a ethernet port?
How can i unpack data packets sent from the ethernet port?
Posted 19-Jun-11 21:34pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Use Pcap.Net[^] Smile | :)
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You need to setup a "TCP server" on port 500 - you can use the Generic TCP server or the HTTP module, with some changes.
TcpClient tcpclient = new TcpClient(); 
tcpclient.Connect("192.168.1.201", 500); 
 
Hope this might guide you.
  Permalink  
Comments
Dave Kreskowiak at 20-Jun-11 8:56am
   
What in the hell does this have to do with capturing packets going out the NIC??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 450
1 OriginalGriff 230
2 DamithSL 150
3 Dave Kreskowiak 110
4 Suvendu Shekhar Giri 110
0 OriginalGriff 7,740
1 DamithSL 5,644
2 Sergey Alexandrovich Kryukov 5,404
3 Maciej Los 5,011
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 20 Jun 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100