libp2p / libp2p/rust-libp2p

file-sharing works only on local interface

Open
#5,254 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
5.6k
Forks
1.3k
Avg merge
8h 47m
Merged PRs (30d)
19

Description

Summary

The file-sharing example works only when provider and client are on the same machine.

To reproduce: copy application onto another machine; follow README.md to start the provider there replacing loopback IP with 0.0.0.0; start retriever from different machine replacing --peer argument with appropriate address as given from starting the provider.

Expected behavior

transfer file to retriever stdout

Actual behavior

retriever panics in main.rc:71:14 "Dial to succeed: ..." and the provider in network.rs:329:18 "ExpiredListenAddr".

Relevant log output

No response

Possible Solution

No response

Version

No response

Would you like to work on fixing this bug ?

Maybe

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Follow README.md to reproduce the file-sharing example with the provider and retriever on different machines. Inspect the retriever failure at main.rc:71:14 and the provider failure at network.rs:329:18, then trace the relevant connection and listen-address handling. Done means the file transfers to retriever stdout without either panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.