Phidget.EnableServerDiscovery
-----------------------------

Enables the dynamic discovery of servers that publish their identity to the network.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Phidget](component_Phidget.md) | [14.0](newinversion140.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Phidget.EnableServerDiscovery"; ServerType ) 

**MBS**( **"Phidget.EnableServerDiscovery";** /\* Enables the dynamic discovery of servers that publish their identity to the network. \*/  
**$ServerType**) /\* Pass none, deviceListener, Device, DeviceRemote, WWWListener, WWW, WWWRemote or SBC.e.g. "DeviceRemote" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ServerType | Pass none, deviceListener, Device, DeviceRemote, WWWListener, WWW, WWWRemote or SBC. | "DeviceRemote" |

### Result

Returns OK or error.

### Description

Enables the dynamic discovery of servers that publish their identity to the network.   
Currently Multicast DNS is used to discover and publish Phidget servers.  
  
To connect to remote Phidgets, call this function with server type DeviceRemote.  
Phidget.EnableServerDiscovery must be called once for each server type your program requires. Multiple calls for the same server type are ignored  
This call will fail with the unsupported error if your computer does not have the required mDNS support. We recommend using Bonjour Print Services on Windows and Mac, or Avahi on Linux.  
### Examples

Watch for remote devices:

 MBS ( "Phidget.EnableServerDiscovery"; "DeviceRemote" )  
### See also

- [Phidget.DisableServerDiscovery](PhidgetDisableServerDiscovery.md)

### Release notes

- **Version 14.0**
    - Added [Phidget.DisableServerDiscovery](https://www.mbsplugins.eu/PhidgetDisableServerDiscovery.shtml) and [Phidget.EnableServerDiscovery](https://www.mbsplugins.eu/PhidgetEnableServerDiscovery.shtml) functions.

### Example Databases

- [Phidgets/Phidget Barometer](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Phidgets/Phidget%20Barometer.shtml#2ScriptAnchor_)
- [Phidgets/Phidget Distance Sensor](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Phidgets/Phidget%20Distance%20Sensor.shtml#2ScriptAnchor_)
- [Phidgets/Phidget IR Receiver](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Phidgets/Phidget%20IR%20Receiver.shtml#2ScriptAnchor_)
- [Phidgets/Phidget Voltage Input](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Phidgets/Phidget%20Voltage%20Input.shtml#16ScriptAnchor_)

### Blog Entries

- [New in MBS FileMaker Plugin 14.0](https://www.mbsplugins.de/archive/2024-01-23/New_in_MBS_FileMaker_Plugin_14/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.6pr1](https://www.mbsplugins.de/archive/2023-12-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 16th November 2023 , last changed 16th November 2023

  
[Phidget.EnableFailsafe](PhidgetEnableFailsafe.md) - [Phidget.Flush](PhidgetFlush.md)

[HTML Version](PhidgetEnableServerDiscovery.shtml)