Is there any way I can fix this? I don’t have any other computer in my network with such a name. That’s just macOS being stupid.
Update: It’s a bug in macOS when wifi and ethernet are enabled at the same time. Fix is to disable WiFi here. Just uncomfortable, extra manual step if I take my Mac somewhere else.
@steipete is it really all that is needed for the bug? Bacuse I have been using Wi-Fi and Ethernet for a long time and have never seen this.
@igorkulman @steipete It’s related to multicast DNS (Bonjour) in some way, and disabling wifi certainly seems to help in some setups, but my current setup does not suffer from the issue although I constantly ran into it when we lived at our old place. Router/DHCP server hasn’t changed, although our new ISP doesn’t do IPv6 🙄 and come to think of it we have a new Wifi AP, so perhaps it’s to do with multicast handling in the AP?
@steipete Just keep WiFi enabled, but don‘t configure your Mac to automatically connect to your home WiFi network.

@steipete this bug has plagued me for years. It drives me crazy, and the forums are full of people complaining about it, and nothing has ever been done.

Pretty sad, because it would be lovely to have a stable host name to connect, but I have now resorted to memorizing the IP address of my Macs.

@steipete I get also this regularly I noticed that I stopped getting it when I activated only one network interface.

@steipete Not sure if this would fix it but here’s what I use whenever I set up a Mac's hostname:

```
HOSTNAME=Luna
sudo scutil --set ComputerName "$HOSTNAME"
sudo scutil --set HostName "$HOSTNAME"
sudo scutil --set LocalHostName "$HOSTNAME"
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "$HOSTNAME"
```

Maybe toggling it to a temp name and back fixes it?

@steipete This issue disappeared for me when we moved house. The only difference I can discern is that at the old flat we had a dual-stack IPv6/IPv4 ISP, whereas the new one is stuck on just IPv4. So I suspect it’s something to do with IP(v6) address assignment. Perhaps give the machine static IP addresses in the DHCP server?
I’ve also heard anecdotal reports that turning off wifi when on wired ethernet is supposed to help, but I don’t do that myself (AirDrop 🙄) & it seems fine.
@steipete give your computer a fixed IP address and a hostnamen … problem solved
@steipete I’m currently on (4697) 😞