Windows API category
Network / Sockets
Low-level TCP/UDP and name resolution. Reverse shells, custom C2 protocols and port scanners show up here when they avoid WinINet/WinHTTP entirely.
Winsock, DNS and raw IP helpers for arbitrary network I/O. This category contains 67 APIs.
Open Network / Sockets in the interactive atlasNetwork / Sockets APIs
Last reviewed or generated: .
-
accept
accept function permits an incoming connection attempt on a socket.
-
bind
Binds a socket to a local address and port.
-
closesocket
Closes a socket.
-
connect
Establishes a connection to a remote endpoint.
-
DnsQuery_A
ANSI variant of DnsQuery.
-
DnsQuery_W
Resolves a name to records using the Windows DNS client, optionally bypassing the local cache.
-
DnsQueryEx
Asynchronous DNS query with extended parameters.
-
DnsRecordListFree
Frees a DNS record list returned by DnsQuery.
-
freeaddrinfo
Frees an addrinfo list returned by getaddrinfo.
-
GetAdaptersAddresses
Retrieves the IPv4 and IPv6 addresses and interface data of the local adapters.
-
GetAdaptersInfo
Returns legacy adapter information including MAC and IP addresses.
-
getaddrinfo
Resolves a host name to socket addresses using the system resolver.
-
GetExtendedTcpTable
Returns extended TCP tables including IPv6 and per-process ownership.
-
gethostbyaddr
Performs reverse lookup of an address.
-
gethostbyname
Legacy resolver that returns host information for a name.
-
GetIpAddrTable
Returns the interface-to-IP address mapping table.
-
getnameinfo
Performs reverse name or service resolution for a socket address.
-
getpeername
Returns the address of the connected peer.
-
getsockname
Returns the local address bound to a socket.
-
getsockopt
Reads socket options.
-
GetTcpTable2
Returns the IPv4 TCP connection table with owning process IDs.
-
GetUdpTable
Returns the IPv4 UDP listener table.
-
htonl
Converts a 32-bit value from host to network byte order.
-
htons
Converts a 16-bit value from host to network byte order.
-
IcmpCloseHandle
Closes an ICMP handle.
-
IcmpCreateFile
Opens a handle for sending ICMP echo requests, the basis of ping sweeps.
-
IcmpSendEcho
Sends an ICMP echo request and waits for a reply.
-
inet_addr
Converts a dotted IPv4 string to a 32-bit address.
-
inet_ntoa
Converts an IPv4 address to a dotted string.
-
inet_ntop
Converts a binary IPv4 or IPv6 address to text.
-
inet_pton
Converts an IPv4 or IPv6 string to binary form.
-
ioctlsocket
Controls socket modes such as non-blocking or async notification.
-
listen
Puts a bound socket into listening state for inbound connections.
-
ntohl
Converts a 32-bit value from network to host byte order.
-
ntohs
Converts a 16-bit value from network to host byte order.
-
recv
Receives data from a connected socket.
-
recvfrom
Receives a datagram and the sender address.
-
select
Waits for one of a set of sockets to become ready.
-
send
Sends data on a connected socket.
-
sendto
Sends a datagram to a specific destination, common in DNS tunnelling and UDP C2.
-
setsockopt
Sets socket options such as timeouts and broadcast permission.
-
shutdown
Disables send or receive operations on a socket.
-
socket
Creates a socket for a given address family and type.
-
WSAAddressToStringW
Formats a socket address as text.
-
WSAAsyncSelect
Requests window-message notification for socket events.
-
WSACleanup
Releases Winsock resources.
-
WSACloseEvent
Closes a Winsock event object.
-
WSAConnect
Establishes a connection with optional caller data and QoS.
-
WSACreateEvent
Creates a Winsock event object.
-
WSADuplicateSocketW
Duplicates a socket for use by another process.
-
WSAEnumNetworkEvents
Retrieves and clears pending network events for a socket.
-
WSAEventSelect
Associates a socket with an event object for network events.
-
WSAGetLastError
Returns the last Winsock error for the calling thread.
-
WSAIoctl
Issues extended socket control operations, including raw socket setup.
-
WSAPoll
Polls socket sets for readiness, an alternative to select.
-
WSARecv
Receives data with scatter/gather and overlapped support.
-
WSARecvFrom
Receives a datagram with overlapped support.
-
WSAResetEvent
Resets a Winsock event object.
-
WSASend
Sends one or more buffers on a connected socket with overlapped I/O support.
-
WSASendTo
Sends a datagram with overlapped I/O support.
-
WSASetEvent
Sets a Winsock event object to signalled.
-
WSASetLastError
Sets the Winsock error value for the calling thread.
-
WSASocketA
ANSI variant of WSASocket.
-
WSASocketW
Creates a socket with extended flags and optional protocol info.
-
WSAStartup
Initialises the Winsock library and negotiates a version.
-
WSAStringToAddressW
Parses a text address into a socket address structure.
-
WSAWaitForMultipleEvents
Waits for socket event objects to signal.