Comment on iOS 17 - gethostname() In theory you could derive it, but I cannot find how exactly iOS does it, so for some names you might make mistakes. That added to the problems when two devices have the same name on the network. App & System Services Core OS Sep ’23