Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4953

Beginners • Re: Headless Pi 5

$
0
0
Question, if I am hooking up directly to cable, why do I need a IP address at all.
Without an IP address, how would it know where to the data should be sent?

Most of the traffic will be UDP or TCP data packets. Each one of those requires a Source and Destination IP address. The physical connection method is irrelevant.
Even the loopback (lo) interface has an IP address: 127.0.0.1 (actually everything from 127.0.0.1 to 127.255.255.254 is valid for that same interface) and that is purely an internal dummy interface.

Setting up the IP addresses is simple. On the PI you use the Network Manager icon or nmtui in the command line. Set one end up as 192.168.2.1/24 and the other end as 192.168.2.2/24 for example. No gateway. No DNS.

Statistics: Posted by rpdom — Thu Jan 16, 2025 11:41 pm



Viewing all articles
Browse latest Browse all 4953

Trending Articles