How to connect to bitcoin core node on LAN directly?

Hi.
I installed start9 recently, and got my node synced up. I have a full node on my desktop as well, which I’d like to stop running and transition to the one on start9.
As a test, I use Bitcoin Wallet (by schildbach) on Android, and I added the desktop and the start9 ips into the “trusted peers” list.

The wallet connects to my desktop just fine, but doesn’t connect to the start9 node.

What do I need to do to enable direct LAN access to bitcoind 8333?

Thanks.

Hi, I just checked ot make sure and we don’t have a guide for connecting the wallet you mentioned to Bitcoin on your Start9 Server.

However, you can try adopting one of the guides from our Bitcoin Integrations list to suite what you might need.

Here you will find guides on how to connect different kinds of Bitcoin wallets (hardware and software) to your server’s node, to complete your sovereign Bitcoin stack!

That said, StartOS does not currently allow you to port forward “out of the box” even though this functionality will be possible with the upcoming releases.

Am I correctly understanding that following this guide would allow me to do what I’m trying to do? (minus the electrs part, I don’t need that)

Yes, that very well could but it is not an officially supported method. This feature has been requested for quite some time and is being worked on for future releases, however, you are free to follow that guide from @remcoros

Yup, that worked.

For future readers, this is what I did:

Login to StartOS over SSH and switch to the root user:

sudo -i

Run the following command to switch to the “chrooted” environment, any system changes made now will be persisted across reboots.

/usr/lib/startos/scripts/chroot-and-upgrade

Paste the following, this will install ‘socat’ and a new systemd service responsible for port forwarding 8333 (bitcoind):

apt install socat -y

cat > /lib/systemd/system/socat.bitcoind.service <<'EOL'
[Unit]
Description=socat bitcoind peer forward
Wants=podman.service
After=podman.service

[Service]
Type=simple
Restart=always
RestartSec=3
ExecStartPre=/bin/bash -c "/bin/systemctl set-environment IP=$(ip route | grep default | awk '{print $9}')"
ExecStart=/usr/bin/socat tcp-l:8333,fork,reuseaddr,su=nobody,bind=${IP} tcp:bitcoind.embassy:8333

[Install]
WantedBy=multi-user.target
EOL

systemctl enable socat.bitcoind