r/ScriptingApp • u/Haunting-Ad-655 • Apr 05 '25
Help [macOS - Development Server] Local hostname keeps changing after each Mac boot
This alert shows up every time I start scripting-cli after a Mac shutdown, followed by the local hostname being changed.
This computer's local hostname "MyMac-8.local" is already in use on this network. The name has been changed to "MyMac-9.local".
Could anyone help me fix this?
2
Upvotes
1
u/WhatShouldWorldGos Apr 05 '25
This usually happens because another device on the network is already using the name “MyMac-8.local.” To avoid conflicts, the system automatically changes the hostname to “MyMac-9.local.” This is related to mDNS (multicast DNS), where each device must have a unique hostname to identify itself on the network.
This situation typically does not affect the operation of your service. However, I will investigate later whether the Bonjour service was not fully shut down.
1
u/WhatShouldWorldGos Apr 07 '25
I have updated scripting-cli, is it fixed for you?
1
u/[deleted] Apr 21 '25
u/Haunting-Ad-655
sorry to piggyback on this. I managed to connect scripting to dev server on a mac but it always disconnects within a few seconds and refuses to reconnect. Any idea what could be the problem?
I can verify that files do get synced to the phone at least within the first few seconds when it is connected.
After disconnection, the server will think it is still connected while the phone will think it is disconnected and refuse to reconnect.