We use cookies

We use cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

Products

  • Order
  • Delphi
    • Delphi Components
    • Delphi WebSocket
    • Delphi MQTT
    • Delphi WhatsApp
    • Delphi AMQP
    • Delphi STOMP
    • Delphi WebRTC
    • Delphi Telegram
    • Delphi SignalR
    • Delphi SignalRCore
    • Delphi Socket.IO
    • Delphi Binance
    • Delphi Coinbase Pro
    • Delphi Discord
    • Delphi Amazon AWS
    • Delphi Azure
    • Delphi HTTP/2 Client
    • Delphi HTTP/2 Server
    • Delphi Apple Push Notifications
    • Delphi OAuth2
    • Delphi JWT
    • Delphi Amazon SQS
    • Delphi Google Cloud PubSub
    • Delphi Google Calendar
    • Delphi DataSnap
  • sgcWebSockets
  • sgcWebSockets .NET
  • sgcBiometrics
  • sgcIndy
eSeGeCe eSeGeCe software
  • WebSockets
    • What's websocket
    • Features
      • Overview
      • Matrix Delphi / CBuilder
      • Matrix .NET
      • Editions
    • Components
      • Delphi
        • WebSocket Client
        • WebSocket Server
      • .NET
        • C# WebSocket Client
        • C# WebSocket Server
    • Protocols
      • MQTT
      • STOMP
        • RabbitMQ
        • ActiveMQ
      • AMQP
        • AMQP 0.9.1
        • AMQP 1.0.0
      • WebRTC
      • WAMP
      • Custom Protocols
        • SGC
        • Files
        • Dataset
        • Presence
    • APIs
      • WhatsApp
      • Telegram
      • OpenAI
      • Cryptos
        • Binance
        • Coinbase Pro
        • Bitmex
        • Kraken
        • Bitfinex
        • Bitstamp
        • Huobi
        • Cex IO
        • FXCM
        • Kucoin
        • OKX
        • XTB
        • Bybit
      • SignalRCore
      • SignalR
      • Pusher
      • Socket IO
      • Other APIs
        • RCON
        • 3Commas
        • CryptoHopper
        • Discord
        • Blockchain
    • Server APIs
      • RTCMultiConnection
      • WebPush
    • IoT
      • AWS IoT
      • Azure IoT
    • AI
      • OpenAI
      • ChatBot
      • Translator
      • Embeddings
      • Vector Databases
        • Pinecone
    • HTTP
      • HTTP/2
        • HTTP/2 Client
        • HTTP/2 Server
        • Apple Push Notifications
      • WebAuthn
      • OAuth2
        • OAuth2 Client
        • OAuth2 Server
        • OAuth2 Server Provider
      • JWT
        • JWT Client
        • JWT Server
      • Amazon SQS
      • Google Cloud PubSub
      • Google Calendar
      • Google FCM
    • P2P
      • UDP
        • UDP Client
        • UDP Server
      • STUN
        • STUN Client
        • STUN Server
      • TURN
        • TURN Client
        • TURN Server
      • ICE
        • ICE Client
      • RTCPeerConnection
    • DataSnap
      • WebBrokerBridge - WebSockets
      • WebBrokerBridge - WebSockets - HTTP/2
      • HTTP.SYS - WebSockets - HTTP/2
    • User Manual
      • Delphi
      • CBuilder
      • .NET
    • Version history
      • Delphi
      • .NET
    • Demo
    • Test Reports
      • WebSockets
      • HTTP/2
    • Download
      • Delphi / CBuilder
      • .NET
    • Online Help
      • Delphi
      • CBuilder
      • .NET
      • Classes
    • Videos
      • Delphi
      • CBuilder
      • .NET
      • Apps
    • Order
      • Order Delphi / CBuilder
        • With Source
        • Without Source
        • Premium Support
      • Order .NET
    • Articles
      • Delphi
      • CBuilder
      • .NET
      • Components
      • Releases
      • Features
      • Installation
    • FAQ
  • OpenAPI
    • What's OpenAPI
    • Features
    • Parser
    • APIs
      • Amazon AWS SDK
      • Google Cloud SDK
      • Azure SDK
      • Microsoft SDK
    • User Manual
    • Online Help
    • Download
    • Videos
    • Order
  • Other Products
    • All-Access
    • Biometrics
      • Features Overview
      • Editions
      • User Manual
      • Version history
      • Download
      • Online Help
      • Videos
      • Order
    • sgcIndy
      • Features Overview
      • Download
      • Order
    • JQueryMobile
      • Introduction
      • Features
      • Editions
      • User manual
      • Version history
      • Online Help
      • Demo
      • Order
    • WebBroker
      • Features
      • Editions
      • User Manual
      • Version history
      • Online Help
      • Order
    • Applications
      • sgcTrader
        • sgcTrader Binance
      • Crypto TradeBar
        • Binance TradeBar
        • Coinbase TradeBar
      • WebSockets
        • WebSocket Client
        • WebSocket Server
        • MQTT Client
        • SignalRCore Client
        • STOMP Client
        • WebRTC server
        • Socket.IO Client
        • Kraken Client
        • Help
  • Buy
    • All-Access
    • sgcWebSockets
    • sgcOpenAPI
    • sgcBiometrics
    • sgcIndy
    • sgcIWJQueryMobile
    • sgcWebBroker
  • Community
    • Forums
      • General
      • Support
    • Blog
  • Contact
    • Contact Us
    • About Us
    • Privacy policy
    • Cookies policy
    • Terms of Use
  • WebSockets
    • What's websocket
    • Features
      • Overview
      • Matrix Delphi / CBuilder
      • Matrix .NET
      • Editions
    • Components
      • Delphi
        • WebSocket Client
        • WebSocket Server
      • .NET
        • C# WebSocket Client
        • C# WebSocket Server
    • Protocols
      • MQTT
      • STOMP
        • RabbitMQ
        • ActiveMQ
      • AMQP
        • AMQP 0.9.1
        • AMQP 1.0.0
      • WebRTC
      • WAMP
      • Custom Protocols
        • SGC
        • Files
        • Dataset
        • Presence
    • APIs
      • WhatsApp
      • Telegram
      • OpenAI
      • Cryptos
        • Binance
        • Coinbase Pro
        • Bitmex
        • Kraken
        • Bitfinex
        • Bitstamp
        • Huobi
        • Cex IO
        • FXCM
        • Kucoin
        • OKX
        • XTB
        • Bybit
      • SignalRCore
      • SignalR
      • Pusher
      • Socket IO
      • Other APIs
        • RCON
        • 3Commas
        • CryptoHopper
        • Discord
        • Blockchain
    • Server APIs
      • RTCMultiConnection
      • WebPush
    • IoT
      • AWS IoT
      • Azure IoT
    • AI
      • OpenAI
      • ChatBot
      • Translator
      • Embeddings
      • Vector Databases
        • Pinecone
    • HTTP
      • HTTP/2
        • HTTP/2 Client
        • HTTP/2 Server
        • Apple Push Notifications
      • WebAuthn
      • OAuth2
        • OAuth2 Client
        • OAuth2 Server
        • OAuth2 Server Provider
      • JWT
        • JWT Client
        • JWT Server
      • Amazon SQS
      • Google Cloud PubSub
      • Google Calendar
      • Google FCM
    • P2P
      • UDP
        • UDP Client
        • UDP Server
      • STUN
        • STUN Client
        • STUN Server
      • TURN
        • TURN Client
        • TURN Server
      • ICE
        • ICE Client
      • RTCPeerConnection
    • DataSnap
      • WebBrokerBridge - WebSockets
      • WebBrokerBridge - WebSockets - HTTP/2
      • HTTP.SYS - WebSockets - HTTP/2
    • User Manual
      • Delphi
      • CBuilder
      • .NET
    • Version history
      • Delphi
      • .NET
    • Demo
    • Test Reports
      • WebSockets
      • HTTP/2
    • Download
      • Delphi / CBuilder
      • .NET
    • Online Help
      • Delphi
      • CBuilder
      • .NET
      • Classes
    • Videos
      • Delphi
      • CBuilder
      • .NET
      • Apps
    • Order
      • Order Delphi / CBuilder
        • With Source
        • Without Source
        • Premium Support
      • Order .NET
    • Articles
      • Delphi
      • CBuilder
      • .NET
      • Components
      • Releases
      • Features
      • Installation
    • FAQ
  • OpenAPI
    • What's OpenAPI
    • Features
    • Parser
    • APIs
      • Amazon AWS SDK
      • Google Cloud SDK
      • Azure SDK
      • Microsoft SDK
    • User Manual
    • Online Help
    • Download
    • Videos
    • Order
  • Other Products
    • All-Access
    • Biometrics
      • Features Overview
      • Editions
      • User Manual
      • Version history
      • Download
      • Online Help
      • Videos
      • Order
    • sgcIndy
      • Features Overview
      • Download
      • Order
    • JQueryMobile
      • Introduction
      • Features
      • Editions
      • User manual
      • Version history
      • Online Help
      • Demo
      • Order
    • WebBroker
      • Features
      • Editions
      • User Manual
      • Version history
      • Online Help
      • Order
    • Applications
      • sgcTrader
        • sgcTrader Binance
      • Crypto TradeBar
        • Binance TradeBar
        • Coinbase TradeBar
      • WebSockets
        • WebSocket Client
        • WebSocket Server
        • MQTT Client
        • SignalRCore Client
        • STOMP Client
        • WebRTC server
        • Socket.IO Client
        • Kraken Client
        • Help
  • Buy
    • All-Access
    • sgcWebSockets
    • sgcOpenAPI
    • sgcBiometrics
    • sgcIndy
    • sgcIWJQueryMobile
    • sgcWebBroker
  • Community
    • Forums
      • General
      • Support
    • Blog
  • Contact
    • Contact Us
    • About Us
    • Privacy policy
    • Cookies policy
    • Terms of Use
  • Login

STUN Protocol

Session Traversal Utilities for NAT (STUN) is a standardized set of methods, including a network protocol, for traversal of network address translator (NAT) gateways in applications of real-time voice, video, messaging, and other interactive communications.

Client-Server

STUN is a client-server protocol. A STUN client (typically embedded in VoIP software, such as an IP PBX or IP Phone) sends a request to a STUN server to discover its public IP and port(s), and the STUN server returns a response. There are two types of requests; Binding Requests which are typically sent over UDP, and Shared Secret Requests, which are sent over TLS (secure communication) over TCP. Shared Secret Requests ask the server to return a temporary set of credentials which are then used in a Binding Request and Binding Response exchange, for the purposes of authentication and message integrity.

Long-Term Credentials

The long-term credential mechanism relies on a long-term credential, in the form of a username and password that are shared between client and server. The credential is considered long-term since it is assumed that it is provisioned for a user and remains in effect until the user is no longer a subscriber of the system or until it is changed. This is basically a traditional "log-in" username and password given to users.

Short-Term Credentials

The short-term credential mechanism assumes that, prior to the STUN transaction, the client and server have used some other protocol to exchange a credential in the form of a username and password. This credential is time-limited. The time limit is defined by the usage.

STUN client.

STUN Client

  • STUN Protocol
  • Supports RFC 8489
  • Long-Term Credentials
  • Retransmissions
  • Fully Asynchronous
  • Supports Windows, Firemonkey, Mac OS, Linux...
  • Events to control the STUN Flow
  • Included in Delphi / CBuilder Package
  • Included in .NET Package
  • Online Documentation
  • Download
  • Download

STUN Client

  • STUN Protocol
  • Supports RFC 8489
  • Long-Term Credentials
  • Retransmissions
  • Fully Asynchronous
  • Supports Windows, Firemonkey, Mac OS, Linux...
  • Events to control the STUN Flow
  • Included in Delphi / CBuilder Package
  • Included in .NET Package
  • STUN Client Help | STUN Client Help
  • Delphi STUN Demo | .NET STUN Demo
  • Rad Studio Trial | .NET Trial
Buy Now

STUN Server.

STUN Server

  • STUN Protocol
  • Supports RFC 8489
  • Long-Term Credentials
  • Short-Term Credentials
  • Alternate Server
  • Supports Windows, Firemonkey, Mac OS, Linux...
  • Events to control the STUN Flow
  • Included in Delphi / CBuilder Package
  • Included in .NET Package
  • Online Documentation
  • Download
  • Download

STUN Server

  • STUN Protocol
  • Supports RFC 8489
  • Long-Term Credentials
  • Short-Term Credentials
  • Alternate Server
  • Supports Windows, Firemonkey, Mac OS, Linux...
  • Events to control the STUN Flow
  • Included in Delphi / CBuilder Package
  • Included in .NET Package
  • Delphi STUN Server | .NET STUN Server
  • Delphi STUN Demo | .NET STUN Demo
  • Rad Studio Trial | .NET Trial
Buy Now
  1. You are here:  
  2. Home
  3. WebSockets
  4. P2P
  5. STUN

eSeGeCe

Copyright © 2025 eSeGeCe. All Rights Reserved. Joomla! is Free Software released under the GNU General Public License.

privacy policy - cookies policy - cookie preferences - terms of use

Supported Development Platforms

Delphi C++ Builder Lazarus .NET
Delphi CBuilder Lazarus Lazarus