client ip address

mazhar_007

New member
Joined
Sep 22, 2008
Messages
2
Programming Experience
Beginner
Hey,
i am actually developing an application which runs on the server .The computer is configured as a Dial in Server and allows clients to connect to it via a regular dial up connection.In The application i need to determine the ip address of the client who is connected to me at that instance.I have tried using
the following code
Dim hostname As IPHostEntry = Dns.GetHostByName(TextBox1.Text)
Dim ip As IPAddress() = hostname.AddressList()
TextBox1.Text = ip(0).ToString()
but it gives me some socket creation error when i type in the name of the client in the text box . Is there any other way to determine the clients ip address who is connected to me at that moment.
Note: i am using the Modem for connections not the LAN adapter.
please reply
Thanks
 
Back
Top