Brian Dunning's FileMaker Custom Functions

UserOnSameNetworkAsServer ( )

Used to tell if the FileMaker Client is on the same network as the FileMaker Server

  Average rating: 4.5 (31 votes) Log in to vote

Hal Gumbert   Hal Gumbert - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
UserOnSameNetworkAsServer ( )
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Used to tell if the FileMaker Client is on the same network as the FileMaker Server.

We needed a method to know if the Client was local or remote.
However, this does not account for Users connected via a VPNs as they will have a local IP.

Returns 0 if not on the same network.
Returns >0 if on the same network.



Jean-Francois   Jean-Francois, MontrĂ©al
Nov 16, 2016
I had a similar calculation to find if local or remote (mainly for FMGo) and it works as the mobile IP is way different, but this solution is not working if someone connect from his own network home that has the same IP chain and 192.168.1 is the most common of them.

So one of my staff passes that validation, but is connected remotely.

Anyone else find another solution ?


Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: