Keep Mac mini on Wi-Fi (for screen-sharing), but disable internet access... How?

I have a Mac mini, running El Capitan, which I use as a media server. I access/control it and control it via screen-sharing. The Mac Mini has no display attached, so it must remain connected to my Wi-Fi or I can't access/control it.

There is however no need for it to be permanently connected to the internet. Beyond the security risk, it also uses up bandwidth for background tasks which I have no use for.

I would like to disable web access, while keeping Wifi connectivity. Possible? How?


There are a couple of things you can do, but by far the easiest is to just manually configure your IP address (don't use DHCP) and leave the router field blank. See below...

enter image description here

Before you select "Manually" in the drop down, take note of the IP address that was assigned to it by DHCP. Then when you select "Manually" just re-enter that same IP address.

With the Router field empty, your Mac Mini will not know how to get out to the Internet.

Update: As pointed out by user3439894 in the comments, reusing the IP address from the DHCP pool could pose a problem. To avoid this, assign it an address outside the pool.

Most routers will have a starting address (Netgear's typically start their addressing at 192.168.1.100 and assign 50 or 100 address). So you either have addresses up to 192.168.1.49 or .199. To make sure you don't cause conflict, just assign it an address either higher than or lower than the pool (i.e. 192.168.1.30 or 192.168.1.210)