Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipv6 not working #1401

Open
bleedingedgedebian opened this issue Feb 12, 2025 · 4 comments
Open

ipv6 not working #1401

bleedingedgedebian opened this issue Feb 12, 2025 · 4 comments

Comments

@bleedingedgedebian
Copy link

I can't seem to get rtorrent 0.15.1 to bind to my ipv6 interface

rtorrent will not start with network.bind_address.set_ipv6 = "::" in rtorrent.rc (although that may be a relic), it also will not start with network.bind_address.set = "::"

When I try to start rtorrent manually with these lines enabled to investigate I get rtorrent: Failed to parse command line option: Error in option file: /var/lib/rtorrent/rtorrent.rc:33: Could not prepare socket for listening: Address already in use (line 33 corresponds to network.bind_address.set = "::")

rtorrent seems to be binding ipv6 to ipv4 interface

ss -tulpn | grep rtorrent
tcp LISTEN 0 4096 [::ffff:0.0.0.0]:50000 : users:(("rtorrent main",pid=24621,fd=13))

I have confirmed this behaviour in these builds:

https://archlinux.org/packages/extra/x86_64/rtorrent/
https://aur.archlinux.org/packages/rtorrent-ipv6

Might I be missing something, using bad builds, wrong config, etc.?

@rakshasa
Copy link
Owner

You should be using network.prefer.ipv6.set = true, not sure if binding to :: works properly.

I started working on ipv4/6 handling a few years before taking a hiatus, so much of that code is partially done.

@bleedingedgedebian
Copy link
Author

Thanks for your reply. rtorrent at least starts with network.prefer.ipv6.set = true unlike other things I tried but still does not report ipv6 to trackers and therefore never establishes connections over ipv6 (from a known good host with known good networking). but if ipv6 is not expected to work currently that is all I need to know!

that said, kindly advise if any other parameters need to be set for this to work if ipv6 is even partially functional. thanks for picking this project back up, been trying to fund you when I can.

@rakshasa
Copy link
Owner

IIRC you need can bind to the specific ipv6 address you want to use.

Probably going to review the current code and figure out what needs fixing over the next few months.

@bleedingedgedebian
Copy link
Author

Your feedback has been helpful. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants