{"id":17697481,"url":"https://github.com/hoangph271/rust-libp2p-tutorial","last_synced_at":"2025-07-22T19:03:27.968Z","repository":{"id":110228619,"uuid":"526084327","full_name":"hoangph271/rust-libp2p-tutorial","owner":"hoangph271","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-18T06:26:54.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T00:41:51.503Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hoangph271.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-18T06:26:51.000Z","updated_at":"2022-08-18T06:26:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"f89f1132-106f-4fd0-ac14-8aaca1956302","html_url":"https://github.com/hoangph271/rust-libp2p-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hoangph271/rust-libp2p-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoangph271%2Frust-libp2p-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoangph271%2Frust-libp2p-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoangph271%2Frust-libp2p-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoangph271%2Frust-libp2p-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoangph271","download_url":"https://codeload.github.com/hoangph271/rust-libp2p-tutorial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoangph271%2Frust-libp2p-tutorial/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266553938,"owners_count":23947236,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-24T14:47:41.455Z","updated_at":"2025-07-22T19:03:27.916Z","avatar_url":"https://github.com/hoangph271.png","language":"Rust","readme":"You need two terminals. In the first terminal window run:\n\n```\ncargo run --example ping\n```\n\nIt will print the PeerId and the new listening addresses, e.g.\n\n```\nLocal peer id: PeerId(\"12D3KooWT1As4mwh3KYBnNTw9bSrRbYQGJTm9SSte82JSumqgCQG\")\nListening on \"/ip4/127.0.0.1/tcp/24915\"\nListening on \"/ip4/192.168.178.25/tcp/24915\"\nListening on \"/ip4/172.17.0.1/tcp/24915\"\nListening on \"/ip6/::1/tcp/24915\"\n```\n\nIn the second terminal window, start a new instance of the example with:\n\n```\ncargo run --example ping -- /ip4/127.0.0.1/tcp/24915\n```\nThe two nodes will establish a connection and send each other ping and pong messages every 15 seconds.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoangph271%2Frust-libp2p-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoangph271%2Frust-libp2p-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoangph271%2Frust-libp2p-tutorial/lists"}