jsakamoto / ipaddressrange

.NET Class Library for range of IP address, both IPv4 and IPv6.
Mozilla Public License 2.0
370 stars 71 forks source link

not support "localhost"? #50

Closed pedoc closed 5 years ago

pedoc commented 5 years ago

RT

jsakamoto commented 5 years ago

What did you mean?

"localhost" is a host name, not an IP address.

This library represent range of IP address, not range of host names.

If you want to resolve IP address from host name, you can do it with Dns.GetHostAddresses(String).

image