Assign a computer name to each network interface

mojaveNetwork

Currently, my computer is connected both the LAN interface and WiFi:

enter image description here

but traffic is being routed via the LAN.

My router has assigned each an IP address:

enter image description here

Why is the computer's name (System Preferences > Sharing > Computer Name) being associated with the WiFi (10.111.222.112), rather than the LAN (192.168.1.201)? Does it have something to do with the remaining lease time?

Is there a way to create/assign a computer name for each interface?

Best Answer

Names aren’t associated to adapters, it’s the hostname of the computer.

Why it’s the WiFi and not the LAN is basically which one got assigned first.

You only have one entry because, well, you can only have one. Many routers have a mDNS service (usually attached to DHCP) that manages the resolution of host names to IP addresses. This is a 1-to-1 relationship. If you had one name pointing to two different IPs, your computer wouldn’t know where to go.