getting External IP: using client-server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gangreen
    New Member
    • Feb 2008
    • 98

    getting External IP: using client-server

    I have a server , and i want to get the external ip of the clients who connect to me.

    How can I do this?
    thx

    (I do not want to use whatismyip's automation page)
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Originally posted by Gangreen
    I have a server , and i want to get the external ip of the clients who connect to me.
    Are they just connecting to your server or using your asp.net application?

    Comment

    • Curtis Rutland
      Recognized Expert Specialist
      • Apr 2008
      • 3264

      #3
      Originally posted by kenobewan
      Are they just connecting to your server or using your asp.net application?
      Based on his previous thread it looks like it isn't an ASP.NET app.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        The socket object they connect to will give you the remote address.

        Comment

        • Gangreen
          New Member
          • Feb 2008
          • 98

          #5
          the client as well as the server are written in VB.net.

          they are using tcpclient and tcplistener.

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            Originally posted by Gangreen
            the client as well as the server are written in VB.net.

            they are using tcpclient and tcplistener.
            TcpClient and TcpListener are built on top of the Socket object and provide access to the underlying Socket object with a property.

            Comment

            Working...