I would assume you could use DDP as long as both nodes can reach each other.
However, if the traffic is indeed using an internet connection (and not a local network) I would assume to see a massive slowdown in your training as this would most likely be the bottleneck of your application.