A simple server consists of an IP address and a port. An IP address is something similar to 38.24.64.23, in which there are four parts; each one of them has a number from 1 to 254. It is similar to the address of your home, but instead of letters, we have four sets of numbers. The port can be any number between 0 to 65535. Some of them are default ports in an application; for example, when you surf the internet, you use port 80; when you SSH to a remote server (or your Pi), you use port 22. Thus, for a simple server implementation, we will use an IP address and a port. This combination defines a server uniquely all over the world. In the following example, we will use our localhost machine for the demo. So, instead of an IP ...
Simple server
Get Raspberry Pi Zero W Wireless Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.