I\'ve come across an interesting problem. Basically I have 2 mobile phones that are both behind NATs. I want to communicate directly between the 2 devices using UDP.
You need a mediator server, so the clients can tell where they are. Then one opens a server by uPNP, and the other connects to it.