My computer routinely receives connection from another host in the local network. However, the router changes its ip address quite frequently, and maybe netsh's equivalent, networksetup, can help?
Change Local IP Address on macOS with Networksetup Command
Network
Best Answer
The command to manually set an IP address is:
This assumes the following:
You will need to adjust your settings accordingly. To get a list of network services (interfaces), you can issue the command: