C# RDP application with STUN -


I have searched all the links in the internet about the NAT running with C # and STUN I have public IP and port That's what the application is using. On most web pages, I have read about STUN, a protocol that should help me connect to other clients behind the NAT-Router or Firewall. Now my question ... If I consider STUN, STUN is only for giving me public IP address and characterization of my NAT.

But how can I connect another client with this information?

AC # implementation:

Example Usage:

  // Create a new socket for the STUN client. Socket socket = new socket (addressfamily.internetwork, sockettip.degram, protocol type .ups); Socket.bund (new IPPpoint (IP address no, 0)); // query STUN server STUN_R result result = STUN_Client.Query ("stunserver.org", 3478, socket); If (result.NetType! = STUN_NetType.UdpBlocked) {// UDP blocked or !!!! Bad STUN Server} Other {IPEndPoint publicEP = Results Public indent; // your stuff}  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -