Hello highdiver_2000,

This article from Microsoft may help.

How to Determine Whether a Client Is Connected by RAS or LAN
Article ID: Q173530 http://support.microsoft.com


NTDOC...