Click here to Skip to main content
12,360,618 members (56,850 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#3.0 C#
How can i read data from a ethernet port?
How can i unpack data packets sent from the ethernet port?
Posted 19-Jun-11 20: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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 20 Jun 2011
Copyright © CodeProject, 1999-2016
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