OS: Windows, language: C ++
I am implementing this case of use : When the user starts my software, the software needs to know whether his PC is currently connected to a specific network (such as a college campus intranet). If only yes, some software features are enabled.
I am new in this area and can not really tell the credible programmatic way. The Function GetComputerNameEx () seems promising. If this function works in case of my use, then what can I trust on the data obtained by this function?
Thanks in advance!
One of the more reliable indicators is the presence of some MAC addresses: they appear only inside a LAN Giving, not on the global Internet. Even a MAC address on the IPV4 network of NATs will be unique worldwide.
On Windows you can try
No comments:
Post a Comment