Yeah, we should have started looking at standard networking tools right away, not really trust what chia UI produces (at least, I assumed that what they produce is valid). That column heading is “Port” not really “some magic used to indicate whatever.” Also, the “Connection type” column already specifies “wallet,” so there is no need to specify the same thing in two places. So, I don’t really know why that 8449 is there. (Based on chia’s UI, I initially thought that somehow chia is maybe reflecting router ports, not local ones.)
I have compared netstat output with that from chia, and yanked out a couple of connections to peers and wallets for comparison (all other connections look the same):
netstat -abnq -p TCP
chia show -c
TCP 192.168.20.145:60021 178.39.186.189:8444 ESTABLISHED netstat
FULL_NODE 178.39.186.189 8444/8444 chia
TCP 192.168.20.145:60065 84.182.234.60:8444 ESTABLISHED netstat
FULL_NODE 84.182.234.60 8444/8444 chia
TCP 192.168.20.145:8444 70.186.231.82:58117 ESTABLISHED netstat
WALLET 70.186.231.82 58117/8449 chia
TCP 192.168.20.145:8444 112.229.254.23:51032 ESTABLISHED netstat
WALLET 112.229.254.23 51032/8449 chia
// my wallet connections - only local
TCP 127.0.0.1:9256 0.0.0.0:0 LISTENING
TCP 127.0.0.1:59990 127.0.0.1:59991 ESTABLISHED
TCP 127.0.0.1:59991 127.0.0.1:59990 ESTABLISHED
TCP 127.0.0.1:60060 127.0.0.1:8444 ESTABLISHED
[start_wallet.exe]
Somehow chia states that port 8449 (one specified for wallet in config.yaml) is being used, but netstat is rather contradicting it (as well as iptraf you used). There is no single line produced by netstat that would have that port.
On the other hand, my wallet has port 9256 open to the world, but it doesn’t look like it is being used, instead my wallet connects to my full node via port 8444. I would put my money on netstat, in this case.
For all my full node peers, netstat shows a random high local port (standard), and 8444 remote port. That just confirms that the only connections that I have are outbound.
However, all wallets have random/high remote port (their ports), and local port 8444 (my node’s port). That would imply that all those wallets initiated their connection. (I need to check again, whether my router permits UPnP opening of port 8444, as I think this is the only way to get it working.)
The strange part is that my wallet is only connecting locally to itself on ports 59990/1, and locally to port 8444 (to my full node). However, it doesn’t try to connect to any outside node (so why those other wallets are making remote connections?).
By the way, I limited netstat to TCP only, but checked that UDP doesn’t have anything chia related.