Ipv4address format

Hi,

In our project should we consider 1.2.3.4 a valid ipv4 address or it must contain the zeros
like 001.002.003.004 ?

Best

both are valid ipv4 addresses. But note: if you use host.toString() it will return “a normalized” version of it. Means, that the zero-pads are cut out.

Hope that answers your question,
David

1 Like

okay thanks!