How to release an IP address on a Mac?
To release and renew your IP address in Mac OS X, you’ll use the Network system preferences to renew the DHCP Lease.
- Click the Apple button and choose System Preferences.
- Choose the Network icon.
- Select your method of connecting to the internet. In most cases it will either be Ethernet or Wi-Fi.
- Click Advanced.
- If you selected Ethernet, you should already be in the TCP/IP tab heading. If you aren’t, or if you selected Wi-Fi, click the TCP/IP tab heading.
- Click Renew DHCP Lease.
- Click OK to exit the Advanced window, and then exit System Preferences.
A restart may be required to complete the process.
Also, To Secure your macOS from virus and trojans, use always a mac optimization software like Mac Optimizer Pro.