Platform Specific Considerations

Configure MacOS to Advertise Its Hostname

Name resolution is a process where a readable name, e.g. ElizaPC, can be resolved into a numerical IP address, e.g. 192.168.41.75. Name resolution eases server connections, by allowing usage of URLs like https://ElizaPC instead of a hard-to-remember, and fragile, https://192.168.41.75.

MacOS, in default configuration, doesn’t provide resolution for the host’s own name.

Here’s how to fix that.

  1. Get to System Preferences via the Apple Menu in the top left of the screen.

    ../../_images/apple-apple-menu.png
  2. Go to the “Sharing” Panel

    ../../_images/apple-system-preferences-sharing.png
  3. Enable File Sharing by checking this box. Other devices on the network can now resolve this machine’s name. Note: File sharing does not have to remain enabled but must be enabled at least once for name resolution.

    ../../_images/apple-file-sharing.png

4. Configure these settings to your application’s needs. This configuration is just for pictorial example. Other devices on the network can still resolve this machine’s name, if File Sharing was ever enabled.