Simply learn yourself.
For iMac

How to Find IP Address on iMac

Internal Ip Address Of Your Imac.

An IP address is responsible for network interface identification and location addressing. Whenever you connect your iMac with network it is granted with four sets of digits separated by periods. This instruction page will guide you how to find IP address on iMac. All you need to do is to follow these simple and easy steps.
Note: By following these steps, you will be able to find only Internal IP address of your iMac.

Step 1:Get to home screen on iMac. Click on the Apple icon present on the left corner of the screen. Scroll down the list and select the ‘System Preferences’ option.

Step 2:Under the hood of ‘internet and wireless’ you will find ‘Network’ option. Click on it and list of networks will be appeared.

Step 3:Generally, your iMac is connected to network via AirPort (wireless) or Ethernet (wired). Select your network and your IP address will be displayed below your connection status. You can also find out Subnet mask and DNS server address from the list.