Network Programming

Discover the world of network programming through our blog. Explore practical projects, tips, and tutorials to help you learn and master this essential skill in today’s connected world. Build projects using different languages such as python.

How to Download a Website Source Code Using Python

How to Download a Website’s Source Code Using Python

In this tutorial, we will be looking at how to download a website’s source code using python. We will be implementing the requests library to make HTTP requests to the websites we want to download. To get started we will need to download requests, open your terminal and run the command shown below. After the …

How to Download a Website’s Source Code Using Python Read More »

How to Build a Web Server From Scratch Using Python

How to Build a Web Server From Scratch Using Python

In this tutorial, we will be creating a webserver from scratch using python. For this program we will be using sockets as our primary building block. First, let’s a file main.py and insert the code below. Run the main.py and a webpage should be available as shown below. There you have it, Thanks for reading. …

How to Build a Web Server From Scratch Using Python Read More »

How to Get the Current Time From the Internet Time Server Using Python

How to Get the Current Time From the Internet Time Server Using Python

In this tutorial, we will be looking at how to get the current time from an NTP server. To begin we will first install ntplib module so as to access the time. To install ntplib run the command below. Now create a Python file and insert the code below. Now run the script and get …

How to Get the Current Time From the Internet Time Server Using Python Read More »

how to get machine information using python

How to Get the Hostname and Ipaddress Of a Machine Using Python

In this tutorial, we will be looking at how to extract the hostname and Ip address from a computer using Python. We will be using sockets as our library, you don’t need to install it since it comes with batteries included. To get started create a file called main.py and then import socket module as …

How to Get the Hostname and Ipaddress Of a Machine Using Python Read More »