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?
Changing local IP address with networksetup command on OSX
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: