Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27349

[RESOLVED] Code to Extract TCP Client's IP Address

$
0
0
The TCP Listener project is starting to gel. And one of the things I did was to find some code which will determine the IP address of the client sending in the stream. I could swear that this worked yesterday.

Code:

Dim ipend = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName()).AddressList(0).ToString()
But today it's assigning the IP address of the machine which my TCP Listener is running on instead of the IP address of the client sending in the data. I really thought I saw this work successfully yesterday. Am I on drugs or what?

Viewing all articles
Browse latest Browse all 27349

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>