You never need to add additional IP addresses to the local host on Linux or Windows. They will respond by default, without additional configuration, to all IP addresses from 127.0.0.0/8:
$ ping 127.254.0.100
PING 127.254.0.100 (127.254.0.100) 56(84) bytes of data.
64 bytes from 127.254.0.100: icmp_seq=1 ttl=64 time=0.026 ms
So just make your application listen on any IP from the 127.0.0.0/8 range and you shall be good to go.
Example:
One console:
$ nc -vvl 127.0.34.2 9022
Connection from 127.0.0.1 port 9022 [tcp/*] accepted
Hello
Another console:
$ echo Hello | nc -vv 127.0.34.1 9022
nc: connect to 127.0.34.1 port 9022 (tcp) failed: Connection refused
$ echo Hello | nc -vv 127.0.34.2 9022
Connection to 127.0.34.2 9022 port [tcp/*] succeeded!
As a commenter noted, it is necessary to add IPs to the localhost interface explicitly on MacOS/Darwin.