Hello, Dave!
DSBut won't RemoteEndpoint only give the address of a router and not
DSthe LAN IP
DSof the source machine? (which I suspect MMA is after)
AFAIK no. When you're connecting to the remote host, you do not
know if there is any router out there ( or if there is route to this
machine ).
you can open microsoft.com, and then use "netstat -an -p tcp" command,
you'll observe that you're connected to MS endpoint and not the router.
DSIf I'm correct, then maybe knowing why you want the source IP would
DSbe useful.
DSYou might get a more appropriate response if you let us know.
DS--
DSDave Sexton
DS"Vadym Stetsyak" <va*****@ukr.netwrote in message
DSnews:uR**************@TK2MSFTNGP04.phx.gbl...
>Hello, MMA!
>Socket.RemoteEndpoint gives the source address of the received packet.
>You wrote on Fri, 20 Oct 2006 06:31:02 -0700:
>MHow do I get the source IP of a packet, not knowing if NAT has
taken
Mplace.
>MThanks In Advance
--
With best regards, Vadym Stetsyak.
Blog:
http://vadmyst.blogspot.com