Hello
I 'm developer but I’m not a specialist corona
my question is
it is possible to get the netmask of the device ?
Thank you
Boboss
Hello
I 'm developer but I’m not a specialist corona
my question is
it is possible to get the netmask of the device ?
Thank you
Boboss
I don’t think so though you might want to check if there’s some way to get it using luasockets (but I don’t think there is).
Why do you need it?
to a broadcast on all devices of network
Use 255.255.255.255, it should work on any subnet.
https://tools.ietf.org/html/rfc922
The address 255.255.255.255 denotes a broadcast on a local hardware
network that must not be forwarded. This address may be used, for
example, by hosts that do not know their network number and are
asking some server for it.Thus, a host on net 36, for example, may:
broadcast to all of its immediate neighbors by using
255.255.255.255broadcast to all of net 36 by using 36.255.255.255
without knowing if the net is subnetted; if it is not, then both
addresses have the same effect. A robust application might try the
former address, and if no response is received, then try the latter.
See [1] for a discussion of such “expanding ring search” techniques.
I don’t think so though you might want to check if there’s some way to get it using luasockets (but I don’t think there is).
Why do you need it?
to a broadcast on all devices of network
Use 255.255.255.255, it should work on any subnet.
https://tools.ietf.org/html/rfc922
The address 255.255.255.255 denotes a broadcast on a local hardware
network that must not be forwarded. This address may be used, for
example, by hosts that do not know their network number and are
asking some server for it.Thus, a host on net 36, for example, may:
broadcast to all of its immediate neighbors by using
255.255.255.255broadcast to all of net 36 by using 36.255.255.255
without knowing if the net is subnetted; if it is not, then both
addresses have the same effect. A robust application might try the
former address, and if no response is received, then try the latter.
See [1] for a discussion of such “expanding ring search” techniques.