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

Bug: Unable to use local XMR node through monerod #996

Closed
1 task done
GhostDog98 opened this issue Sep 23, 2024 · 4 comments
Closed
1 task done

Bug: Unable to use local XMR node through monerod #996

GhostDog98 opened this issue Sep 23, 2024 · 4 comments

Comments

@GhostDog98
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When connecting to a locally hosted monero node, i see the following traffic:
Stack sends SYN to server
Server responds with [RST, ACK]

Stack wallet says server is offline.
My cmdline options for my server are:
./monerod --restricted-rpc --rpc-login redacted:redacted --data-dir ./

And my node details are:
Node name: test
Url: http://192.168.0.123
Port: 18081
Login: redacted
Password: redacted

On the server, I have ports 18081, 18080, and 18089 set to ALLOW. Both the devices are on the same subnet and can clearly communicate, as I can contact a web server hosted on the same host.

Expected Behavior

I put in the details and it works.

Reproduce Steps

Run a node using monerod:
./monerod --restricted-rpc --rpc-login redacted:redacted --data-dir ./
Open up ports 18080, 18081, and 18089 using ufw allow <port>
Connect via stack wallet
Stack wallet fails to connect

Environment

Server Env:

  • Arch linux x86_64

Stack env:

  • Build number 2243, version 2.1.4

Logs

No response

Further Information

No response

@sneurlax
Copy link
Member

This is probably related to RPC authentication: #981

@sneurlax
Copy link
Member

Been working on this, RPC authentication has just been a stumbling-block

@GhostDog98
Copy link
Author

GhostDog98 commented Oct 1, 2024

This is probably related to RPC authentication: #981

I believe this is a separate issue, as when running the server using ./monerod --data-dir ./ it still fails, and i am never getting a prompt for the certificate, which suggests a failure earlier in the connection attempt.
Here's some more diagnostics should they help:

  • ping from client to server returns consistently, showing the ip is reachable
  • ping from server to client returns consistently
  • I can reach other open ports (e.g. 80, 443, 8080) from the client

Currently waiting for monerod to fully sync with the chain, i'll run an nmap after it does...

Edit/Update for nmap:
Running nmap from client to server returns that 18080 is open, but 18081 and 18089 are closed.
Running with the server enabled rpc, i get the same results, despite the fact that 18081 should be open?

@GhostDog98
Copy link
Author

Ended up fixing my issue, twas a skill issue afterall;
./monerod --restricted-rpc --rpc-bind-port 18081 --rpc-bind-ip <local ipv4 address> --confirm-external-bind --rpc-login <username>:<login> --data-dir ./ is the command you want to use if you are communicating over local network.

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