Cannot connect wallet client to daemon


> Similar issue: #8156

Started 2 connected `regtest` nodes on localhost and trying to start the wallet client and receiving the same exception as above `Exception at while refreshing, what=no connection to daemon
` 

```
+ monerod --detach --pidfile=/home/dev/dextest/xmr/alpha/monerod.pid --regtest --data-dir=/home/dev/dextest/xmr/alpha --config-file=/home/dev/dextest/xmr/alpha/alpha.conf --no-igd --no-zmq --hide-my-port --p2p-bind-ip 127.0.0.1 --p2p-bind-port 48080 --rpc-bind-ip 127.0.0.1 --rpc-bind-port 48081 --add-exclusive-node 127.0.0.1:58080 --fixed-difficulty 1 --disable-rpc-ban --log-level 1
2024-05-06 19:05:59.454	I Monero 'Fluorine Fermi' (v0.18.3.3-release)
2024-05-06 19:05:59.454	I Moving from main() into the daemonize now.
Forking to background...
+ sleep 5
+ monerod --detach --pidfile=/home/dev/dextest/xmr/beta/monerod.pid --regtest --data-dir=/home/dev/dextest/xmr/beta --config-file=/home/dev/dextest/xmr/beta/beta.conf --no-igd --no-zmq --hide-my-port --p2p-bind-ip 127.0.0.1 --p2p-bind-port 58080 --rpc-bind-ip 127.0.0.1 --rpc-bind-port 58081 --add-exclusive-node 127.0.0.1:48080 --fixed-difficulty 1 --disable-rpc-ban --log-level 1
2024-05-06 19:06:04.568	I Monero 'Fluorine Fermi' (v0.18.3.3-release)
2024-05-06 19:06:04.568	I Moving from main() into the daemonize now.
Forking to background...
+ monero-wallet-rpc --daemon-address 127.0.0.1:58081 --rpc-bind-ip 127.0.0.1 --rpc-bind-port 28884 --log-file=/home/dev/dextest/xmr/wallets/fred-wallet-rpc.log --disable-rpc-login --allow-mismatched-daemon-version --wallet-dir /home/dev/dextest/xmr/wallets
This is the RPC monero wallet. It needs to connect to a monero
daemon to work correctly.

Monero 'Fluorine Fermi' (v0.18.3.3-release)
Logging to /home/dev/dextest/xmr/wallets/fred-wallet-rpc.log


```

_Originally posted by @dev-warrior777 in https://github.com/monero-project/monero/issues/8156#issuecomment-2096723462_
            