Re: Check for activity on TCP port



On May 12, 2:24 pm, Michael Nemtsev <nemt...@xxxxxxx> wrote:
Hello Sir,

See this C# snifferhttp://www.c-sharpcorner.com/UploadFile/leonidmolochniy/SimpleSniffer...

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:http://spaces.live.com/laflour
Team blog:http://devkids.blogspot.com/


Thanks for the quick response. That example was not the most
complete / easy to follow example :(

Let me clarify my request a little. I can get an array of tcp
listeners via the following code:

IPGlobalProperties.GetIPGlobalProperties();
IPEndPoint[] endPoints = properties.GetActiveTcpListeners();

I'm looking for an event that will fire once a tcp port moves from the
listening status to established status. I want this to run as a
service so I don't want it to chew up cycles constantly checking for a
specific port to move form listening to established that's why I ask
for an event. Basically I want to execute some code once the port
moves from listening to established, and then run some clean up code
once it moves from established back to listening.

.



Relevant Pages

  • Re: Best Plan of action for 2 forest.......
    ... PortQry reports the status of a port in one of the following ways: ... ..LISTENING This response indicates that a process is listening on the target ...
    (microsoft.public.windows.server.active_directory)
  • Re: Best Plan of action for 2 forest.......
    ... UDP port 138: LISTENING or FILTERED ... ..LISTENING This response indicates that a process is listening on the ... ..FILTERED This response indicates that the target port is being ...
    (microsoft.public.windows.server.active_directory)
  • Re: RealVNC
    ... If we are talking about RealVNC it goes this way ... Then there is default Java listening port on port 5800 on the client machine ...
    (microsoft.public.windows.server.sbs)
  • Re: Best Plan of action for 2 forest.......
    ... UDP port 138: LISTENING or FILTERED ... ..LISTENING This response indicates that a process is listening on the ... ..FILTERED This response indicates that the target port is being ...
    (microsoft.public.windows.server.active_directory)
  • Re: Cant join a domain
    ... Attempting to resolve name to IP address... ... TCP port 42: NOT LISTENING ...
    (microsoft.public.windows.server.active_directory)