Restricting TCP/IP access to localhost or LAN host