Should I need to use nginx to get a go-ipfs p2p-circuit relay node running with a public IP address? I’ve been following the circuit relay example and the localhost websocket ports ( /ip4/127.0.0.1/tcp/4004/ws/p2p/QmHash
) are showing up fine, but only the regular /tcp/4001/p2p/QmHash
address is showing up for my public IP, not the /tcp/4001/ws/p2p/QmHash
one I really want.
The relevant bits of my ~/.ipfs/config
:
"Addresses": {
"Swarm": [
"/ip4/0.0.0.0/tcp/4001",
"/ip4/0.0.0.0/tcp/4004/ws",
"/ip6/::/tcp/4001"
],
"Announce": [],
},
"Swarm": {
"AddrFilters": [
/// tons of random stuff here from the default server setup
],
"DisableBandwidthMetrics": false,
"DisableNatPortMap": true,
"DisableRelay": false,
"EnableRelayHop": true,
"EnableAutoRelay": false,
},
and here’s what ipfs id
says the addresses are:
"Addresses": [
"/ip4/127.0.0.1/tcp/4001/p2p/QmHash",
"/ip4/127.0.0.1/tcp/4004/ws/p2p/QmHash",
"/ip6/::1/tcp/4001/p2p/QmHash",
"/ip4/35.XX.XX.XX/tcp/4001/p2p/QmHash"
],
Explicitly adding the 35.XX.XX.XX IP addr in the first Addresses: Swarm: bit doesn’t make a difference (with the same or different ports).