How to set up a PC in a LAN that can access and be accessed by other LAN devices, but cannot access the internet?

    1.Assign a static IP to the PC (e.g., 192.168.1.100).

    2.Set the subnet mask (e.g., 255.255.255.0).

    3.Leave the default gateway field empty.

    4.Leave the DNS server fields empty.