Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Determining local versus remote

Featured Replies

How can you determine if a user is connected to a FMP database on his/her local computer or is connected via a LAN or WAN?

The reason I ask is because I want to develop an Install On Timer script for a backup script (Save Copy As...) Since this script step is only valid on the computer hosting the database, I need this On Timer script to only run on the computer hosting the database. Make sense?

I know this step is not valid when using FMP Server and I have a way of knowing if that is the case or not.

I'm sure there is a simple Get function but I seem to be brain dead when looking for it.

Thanks,

Will

  • Author

I see that I could store the NIC address for the host and compare the client's NIC to that. I'll go forward with that approach, but would be interested if there is not another method in which I don't have to store the host's NIC.

- W

If using FMP 9 and later then use the Get( HostApplicationVersion ) function. From the function ref:

Displays a value when used with the same or higher version of FileMaker Pro or FileMaker Server software. If the current database is not shared or hosted, this function returns an empty string. Also returns an empty string when used from the host computer itself.

However your plans for automated backup haven't taken into account that the Save a Copy As command does not work if the file is opened with more than one user.

My advice is to get FM Server. It does backups of hosted databases and much more. It's also faster and more robust than peer-to-peer sharing.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.