socket problem - extracting client IP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dvpatilin
    New Member
    • Aug 2006
    • 5

    socket problem - extracting client IP

    how to extract client ip address from client socket at server side in c# ? :confused:
  • joedeene
    Contributor
    • Jul 2008
    • 579

    #2
    well, if you made the client app yourself, then you could have it check its own ip and then send it

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      So let me see if I can clarify this.
      In your server application you have a socket connection with a client.
      You want to get the connected client's IP address?
      [code=c#]
      IPAddress ipaddy=((IPEndP oint)mySocket.R emoteEndPoint). Address;
      [/code]

      Comment

      Working...