I am working with an application where my iPhone needs to see my laptop on the network under its host name and not the IP address because the SSL certificate works with the name only. At the office, I resolved it by adding a DNS entry mapping my host to my IP and it works. But today I am WFH on my home network which does not have a DNS server capability.
I was wondering if I can somehow edit some hosts file on the iPhone (or some setting or something equivalent) so that the iPhone can see the laptop under its name. They are both on the same network and can reach each other via IP but the network has no DNS.
I also came upon this related material. Here are my pertinent settings:
>hostname my-mac.local >scutil --get ComputerName my-mac >scutil --get HostName HostName: not set >scutil --get LocalHostName my-mac