Does macOS support AnyIP?
The feature is not supported on macOS.

Depending on how many IP addresses you want to listen to, you could use a simple script to bind each IP-address to the interface individually using the ifconfig alias command.