Hi there,
If you don't want your computer to have internet access and only see the LAN or have access to the shared network resources, you may remove the Gateway and DNS'es from your LAN or WLAN settings. See the image below. This is just an example, your Subnet might be different than mine. If you need a step by step guide please don't hesitate to ask.