IP address
The number that identifies a machine on a network.
An IP address (IPv4 like 127.0.0.1, or IPv6 like ::1) names a network interface; std::net::IpAddr represents either.
Examples
"127.0.0.1".parse::<IpAddr>()gives an address whoseis_loopback()istrue;"192.168.1.300".parse::<IpAddr>()is anErr, since 300 is out of range.
See also