RE: [ntdev] Re: I am going to write a bookHi Bi,
I’d use another IP-helper function here: SendARP() which would provide you the way to translate IP to Ethernet MAC address (if any). If there is the MAC address then it is LAN connection, otherwise it is WAN.
Regards,
Timur
“Bi Chen” wrote in message news:xxxxx@ntdev…
Hi,
Is there a way to tell a socket connetion to a server is through WAN or LAN (modem, ADSL, Cable modem) using TCP/IP? The most problematic thing I see is that if a PC uses external ADSL or cable modem. Since in this case the PC typically connect to cable or ADSL modem through an eithernet. I am not sure if hop count can be used to tell the difference between an Corpration LAN and WAN. Also, what about shared internet connection through NAT. Is there any other thing that can be used to tell the difference?
Thanks.
Bi