[−][src]Function rubric::helpers::web::get_ip
pub fn get_ip() -> Option<Ipv4Addr>
Gets the public IPv4 address of the machine, if there is one.
Warning: this makes a web request, meaning it will take time. Use this as little as possible to speed up your program.
Example
let ip = web::get_ip(); assert!(ip.is_some());