SOCKS 4 is a TCP protocol used by proxy servers to establish a connection between agents on the internal network or LAN and endpoints or servers outside the LAN. The SOCKS 4 protocol makes connection requests, sets up proxy circuits and relays data at the Application layer of the OSI model.