Dear community,
I have some problems connecting two nodes locally on the same network. I have two nodes a “server node” and a “laptop node”.
————————————————————————————————
Now, I have tried to connect these two nodes by bootstrapping and “ipfs swarm connect” from two different networks. When I try to connect with my laptop from an outside network (cellular) to my server on a local network
ipfs swarm connect /ip4/77.250.53.250/tcp/4001/p2p/12D3KooWCdkKw4hKXLEZg1K1pFPShV7s7gzymb6xmitKooTfoFd7
where 77.250.53.250 is my public IP then it connects to my “server node” perfectly.
————————————————————————————————
However, when my laptop is on the same LOCAL NETWORK as my “server node” then I don’t seem able to connect to the “server node". I use again
~ % ipfs swarm connect /ip4/77.250.53.250/tcp/4001/p2p/12D3KooWCdkKw4hKXLEZg1K1pFPShV7s7gzymb6xmitKooTfoFd7
connect 12D3KooWCdkKw4hKXLEZg1K1pFPShV7s7gzymb6xmitKooTfoFd7 success
and it says it is a success. But when I then use: “ipfs swarm peers” it does not show up in the list
————————————————————————————————
Finally, when I try to connect from my “server node” locally to my “laptop node" by using
$ ipfs swarm connect /ip4/77.250.53.250/tcp/4002/p2p/12D3KooWJ1wgTksqoFFcCUCDXoMZMTkfZ3DhLhzwfCqCgk7WLawa
connect 12D3KooWJ1wgTksqoFFcCUCDXoMZMTkfZ3DhLhzwfCqCgk7WLawa success
It is again a succes, but when I then look at: “ipfs swarm peers” it is again not in the list. PS I used port 4002 for my laptop since I already use 4001 for the server node.
————————————————————————————————
CONCLUSION: I cannot connect locally from my “laptop node” to my "server node”, and I don’t understand why it does work from an outside network,
Hopefully, somebody can help me and clarify what is going on ?
Thanks in advance!