How to restrict Nextcloud logins to IP addresses

If you want to lock down your Nextcloud instance so only certain computers can log in, follow these steps.