A raw socket is a type of socket that gives access to the underlying transport layer. It allows users to bypass the TCP/IP stack and communicate directly with the network layer.
This is frequently used for spoofing, sniffing, and packet injection purposes.