sniff RRS feed

  • Question

  • there are 2 programs communicating using c#sockets in a specific port.
    now i need to  write a program to sniff that particular port and find what text they are transmitting.

    pls help me

    Thursday, July 27, 2006 8:27 AM


All replies

  • HI

    Let me make the problem more Clear.

    I have a  TCP Listener . which listens for any new connection Request in a specific port.When any connection form any machine comes it will accepts.

    Before that. i want to know from which machine the socket request is comming.

    My Socket has to accept new connection only if its from a specific Ip address.

    Pls let me know how to do that?


    Monday, September 4, 2006 9:51 AM
  • If you are using a connection-oriented protocol, the Socket.RemoteEndPoint property gets the EndPoint that contains the remote IP address and port number to which the Socket is connected. But this is not secure, because someone might pretend is has some IP address. IPSec provides a secure IP based authentication.
    Monday, September 4, 2006 11:34 AM