Category Archives: Socket Programming

Socket programming tutorials in C, Python, Perl, Php, Java and Winsock

Browse Sub-Categories:

How to Fetch Domain Whois Data with Sockets in Python

By | August 6, 2020

Whois The whois information of a domain name provides various details like registrar, owner, registration date, expiry date etc. The whois information is provided by the corresponding whois servers of the registrars. The information is available for free and most whois servers run a whois service on port 43 which provides whois data associated with… Read More »

How to Program UDP sockets in Python – Client and Server Code Example

By | August 7, 2020

UDP sockets UDP or user datagram protocol is an alternative protocol to its more common counterpart TCP. UDP like TCP is a protocol for packet transfer from 1 host to another, but has some important differences. UDP is a connection-less and non-stream oriented protocol. It means a UDP server just catches incoming packets from any… Read More »

Raw Socket Programming in Python on Linux – Code Examples

By | January 13, 2023

Raw sockets Raw sockets allow a program or application to provide custom headers for the specific protocol(tcp ip) which are otherwise provided by the kernel/os network stack. In more simple terms its for adding custom headers instead of headers provided by the underlying operating system. Raw socket support is available natively in the socket api… Read More »

Udp Socket Programming in Java – How to Code Client and Server

By | August 5, 2020

UDP – User Datagram Protocol sockets UDP is an alternative protocol to the more commonly used TCP protocol. It is a connection-less protocol where you directly send packets without have to establish a proper connection. UDP packets have smaller headers compared to TCP headers. Also data communication is faster since no acknowledgement is exchanged for… Read More »