{"id":17203998,"url":"https://github.com/ivanceras/machine-ip","last_synced_at":"2025-10-09T09:20:20.878Z","repository":{"id":57635835,"uuid":"110249282","full_name":"ivanceras/machine-ip","owner":"ivanceras","description":"Get local ip address in rust, equivalent to `hostname -I` in linux","archived":false,"fork":false,"pushed_at":"2018-12-20T09:46:02.000Z","size":6,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-23T01:31:34.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivanceras.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-10T13:21:59.000Z","updated_at":"2021-11-09T09:34:38.000Z","dependencies_parsed_at":"2022-09-26T20:21:28.990Z","dependency_job_id":null,"html_url":"https://github.com/ivanceras/machine-ip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanceras%2Fmachine-ip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanceras%2Fmachine-ip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanceras%2Fmachine-ip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanceras%2Fmachine-ip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanceras","download_url":"https://codeload.github.com/ivanceras/machine-ip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608159,"owners_count":20965954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T02:20:12.690Z","updated_at":"2025-10-09T09:20:15.823Z","avatar_url":"https://github.com/ivanceras.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# machine-ip\n\nGet your local ip address in Rust, using `hostname -I`\nunder the hood, may not work in older versions of windows\n\n```toml\nmachine-ip = \"0.1\"\n```\n\nthen\n\n```rust\nextern crate machine_ip;\n\nlet ip = machine_ip::get().unwrap();\nprintln!(\"local ip address: {:?}\", ip.to_string());\n```\n\n## Warning\nThis crate just wraps the `hostname` command, so it only works on unix based OS, and this doesn't work on windows.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanceras%2Fmachine-ip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanceras%2Fmachine-ip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanceras%2Fmachine-ip/lists"}