STUN/NAT Traversal -> Connecting Problem
-
Hello, i've downloaded the STUN-Client from codeproject.com and want now to let two clients connect each other. At first, i create a UdpClient and make a STUN-Query with that. After it, i send the mapped addresses to a server, which deploys them to the two clients. Now they want to connect each other and i make a UdpClient.Connect(mappedIP). This _should_ work, but the problem is, i only get messages from the STUN-Server. I send the data via "UdpClient.Client.SendTo(...)" to my client, but nothing works. I just get crptic messages from the STUN-Server. I've closed the UdpClient. Disconnected and so on, but nothing helps. Has anybody a solution for me?
-
Hello, i've downloaded the STUN-Client from codeproject.com and want now to let two clients connect each other. At first, i create a UdpClient and make a STUN-Query with that. After it, i send the mapped addresses to a server, which deploys them to the two clients. Now they want to connect each other and i make a UdpClient.Connect(mappedIP). This _should_ work, but the problem is, i only get messages from the STUN-Server. I send the data via "UdpClient.Client.SendTo(...)" to my client, but nothing works. I just get crptic messages from the STUN-Server. I've closed the UdpClient. Disconnected and so on, but nothing helps. Has anybody a solution for me?
softwarejaeger wrote:
i've downloaded the STUN-Client from codeproject.com
I assume this is from an article somewhere? If so, the appropriate place to ask this question is on the article forum. It's extremely unlikely that the author will just happen to stumble across your question and answer it. It's even less likely that somebody else will take the time to download this software, and debug it for you to see what's going wrong.
I'm not a stalker, I just know things. Oh by the way, you're out of milk.
Forgive your enemies - it messes with their heads