Thank you so much for that link, @hector! It was exactly what I needed.
I read through the thread How to setup V1 Relay in the new config, and I was using a very similar network configuration as @susarlanikhilesh: The two nodes I wanted to connect were behind an unknown level of firewalls with no visibility into their network configuration. I needed a way to tunnel through any firewalls and pass files between the nodes. I followed the instructions carefully, but in my tests, hole punching was not successful and I was not able to get the two nodes to connect to one another directly. Reverting to a v1 Relay was my only option.
I was able to setup libp2p-relay-daemon as a V1 relay using this config:
{
"RelayV2": {
"Enabled": false
},
"RelayV1": {
"Enabled": true
},
"Network": {
"ListenAddrs": [
"/ip4/0.0.0.0/udp/4002/quic",
"/ip6/::/udp/4002/quic",
"/ip4/0.0.0.0/tcp/4002",
"/ip6/::/tcp/4002",
"/ip4/0.0.0.0/tcp/4003/ws",
"/ip6/::/tcp/4003/ws"
]
},
"Daemon": {
"PprofPort": 6061
}
}
Also a note for people who try this: You need to install Go v1.17.12. The project will not install with the current version of Go (v1.18.4).