I did not watch the video.
What is your LAN IP address network? You can find out by looking at the output of the command:
ip a
Under the section starting with 2: like
Code:
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:d9:b9:26 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.224/24 brd 192.168.1.255
The IP address is 192.168.1.244 and the network is 192.168.1.1 - 192.168.1.255, the loop should be
Code:
for i in 192.168.1.{1..254}
192.168.1.255 is the broadcast address and not assigned to a device. If yours is not /24 you can search for a IPv4 calculator to figure out your subnet. If it is an IPv6 address then the script needs to be changed a bit.