Skip to content

--rpc-bind-ipv6-address appears to be broken #10307

@hhartzer

Description

@hhartzer

Testing with 0.18.4.3 on OpenBSD 7.8:

monero-wallet-rpc --rpc-use-ipv6 --rpc-bind-port 6780 --rpc-bind-ipv6-address [fd:55::5e]

I've tried with and without the brackets, and the behavior is the same.

2026-02-05 04:11:32.485    0xeed1e36c4f8        INFO    global  contrib/epee/include/net/http_server_impl_base.h:94     Binding on 127.0.0.1 (IPv4):6780
2026-02-05 04:11:32.486    0xeed1e36c4f8        INFO    global  contrib/epee/include/net/http_server_impl_base.h:97     Binding on fd:55::5e (IPv6):6780

It binds on the IPv6 socket correctly.

nero# netstat -f inet6 -l | grep 6780
tcp6         0      0  fd:55::5e.6780         *.*                    LISTEN

But closes the connection for any HTTP call.

nero# curl -v http://[fd:55::5e]:6780/
*   Trying [fd:55::5e]:6780...
* Established connection to fd:55::5e (fd:55::5e port 6780) from fd:55::5e port 5125 
* using HTTP/1.x
> GET / HTTP/1.1
> Host: [fd:55::5e]:6780
> User-Agent: curl/8.16.0
> Accept: */*
> 
* Recv failure: Connection reset by peer
* closing connection #0
curl: (56) Recv failure: Connection reset by peer

Does not do this with IPv4.

nero# curl -v http://127.0.0.1:6780/   
*   Trying 127.0.0.1:6780...
* Established connection to 127.0.0.1 (127.0.0.1 port 6780) from 127.0.0.1 port 48759 
* using HTTP/1.x
> GET / HTTP/1.1
> Host: 127.0.0.1:6780
> User-Agent: curl/8.16.0
> Accept: */*
> 
< HTTP/1.1 401 Unauthorized
< Server: Epee-based
< Content-Length: 98
< Content-Type: text/html
< Last-Modified: Thu, 05 Feb 2026 04:15:31 GMT
< Accept-Ranges: bytes
< WWW-authenticate: Digest qop="auth",algorithm=MD5,realm="monero-rpc",nonce="90phNlK30V9QcgtzvkYBBg==",stale=false
* Ignoring duplicate digest auth header.
< WWW-authenticate: Digest qop="auth",algorithm=MD5-sess,realm="monero-rpc",nonce="90phNlK30V9QcgtzvkYBBg==",stale=false
< 
* Connection #0 to host 127.0.0.1:6780 left intact
<html><head><title>Unauthorized Access</title></head><body><h1>401 Unauthorized</h1></body></html

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions