You would probably need to check if the accessing computer has an IP address in your local networks IP range.

For that you will need to know what IP range you use. Look at your own IP address -
...