Your Mac’s network name forms part of its network address. If you want to share your Mac’s files and folders with other computers on your network you’ll need to know its network address so that those other computers can connect to it. This information is readily available in System Preferences, but this article looks at how to get your Mac’s network name using the command line.
There are occasions when we want to make a computer on a home/local area network (LAN) accessible externally on the Internet. For example, remotely connecting to a LAN computer using SSH or remotely accessing a web site residing on a LAN computer.
Each computer connected to a local network is assigned a dynamic IP address. On occasion it’s useful, if not essential, to assign a static IP address instead. As an example, port forwarding requires the destination computer on a local network to have a static IP address.
Using OS X Lion 10.7.1, I’ll describe two ways of assigning a static IP address to a computer on a local network.