C
C#14mo ago
Masimos

❔ Wanna impress my programing teacher

Hi just curious how to ping a subnet. My programing teacher did not wanna tell us how to do it so I wanna do it on my own. On git hub there are many solutions so should i try them all or?
17 Replies
Jimmacle
Jimmacle14mo ago
what do you expect "pinging a subnet" to do you don't ping subnets, you ping devices
Masimos
MasimosOP14mo ago
ah
Jimmacle
Jimmacle14mo ago
a subnet isn't a thing that can respond to a message it's a layer of organization of a network
Masimos
MasimosOP14mo ago
I dont exactly know we were mentioning pinging devices and he told us we can ping every device that is on a "subnet". Maybe i did not undersand him corectly but he did not tell us how to do it so just curious if I can figure it out.
Jimmacle
Jimmacle14mo ago
i mean you can do that, but not in one go maybe that's what he wants you to figure out
Masimos
MasimosOP14mo ago
is not pinging devices just getting a response from every device on a network?
Aokiri 🐸
Aokiri 🐸14mo ago
Maybe he tried to tell you about a Ping to the broadcast default address. But that should be hard to do nowadays.
Jimmacle
Jimmacle14mo ago
it's getting a response from one device
Aokiri 🐸
Aokiri 🐸14mo ago
Every router/switch seize that kind of "pings"
Jimmacle
Jimmacle14mo ago
so if you want to ping all the devices on a subnet, i would expect the solution would involve figuring out all the IP addresses within that subnet and pinging them one by one
Masimos
MasimosOP14mo ago
yea i think he said something along those lines let me see if i can see how to do that would this work to ping all devices on my subnet ping 255.255.255.255?
Omnissiah
Omnissiah14mo ago
that would ping a lot of stuff and it would take probably a whole day or two -- i tried (and require admin privileges (and maybe cause bad things with the isp)) you should at least have a subnet mask
Masimos
MasimosOP14mo ago
what is a subnet mask like what problems with my isp?
Omnissiah
Omnissiah14mo ago
the "address" of the network, just google it shooting packets at every address imaginable could be a suspicious behavior
Jimmacle
Jimmacle14mo ago
that's not quite what it is the subnet mask basically tells you which bits of the address are "inside" the subnet that's why it's called a mask
Omnissiah
Omnissiah14mo ago
i know, but i said google that because at the moment i couldn't find the words like i would have said usually the higher 16 or 24 bits of the ip are for the network but i don't know his level of knowledge, finding simple enough concepts to explain
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server