aioice
An implementation of Interactive Connectivity Establishment (RFC 5245)
Decision gist · record as of 2026-08-14
Yes. aioice is actively maintained, has no known vulnerabilities, installs with minimal friction, and is the standard choice for ICE protocol support in Python asyncio applications. Use it if you are building WebRTC, SIP, or any peer-to-peer UDP application that needs NAT traversal; skip it if your use case does not require ICE or if you are not using asyncio.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; asyncio event loop must be running.
- Low friction: pure Python wheel with only two lightweight runtime dependencies (dnspython and ifaddr).
- Actively maintained with a recent release and no known vulnerabilities.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use, modify, and distribute aioice with minimal restrictions, provided you include the license notice.
last release 2025-11-28 (259 days) · last repo commit 2026-03-18 · 141 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,037,028 downloads/mo, #3,349 on PyPI
Alternatives
Verify before relying
import asyncio
import aioice
async def main():
connection = aioice.Connection(ice_controlling=True)
await connection.gather_candidates()
# Add remote candidates and perform handshake
await connection.connect()
await connection.sendto(b'data', 1)
asyncio.run(main())- Whether the library handles all RFC 5245 edge cases or has known limitations in specific NAT scenarios.
- Performance characteristics under high-throughput or high-latency conditions.
- Compatibility with specific WebRTC implementations or SIP stacks beyond the documented use cases.
What it is and what it does
aioice is a Python library that implements the Interactive Connectivity Establishment (ICE) protocol, which solves the problem of establishing direct peer-to-peer UDP connections across network address translation (NAT) boundaries. It wraps the protocol logic in asyncio, Python's standard asynchronous I/O framework, making it suitable for applications that need to negotiate and maintain UDP data streams between peers—most commonly WebRTC and SIP applications.
The library handles the full ICE workflow: gathering local network candidates, exchanging candidate information with a remote peer via your own signaling channel, performing the ICE handshake to select the best working candidate pair, and then sending and receiving data over the established connection. It abstracts away the complexity of NAT traversal, STUN/TURN server interaction, and candidate prioritization, leaving you to focus on your application's signaling and data handling logic.
Use it for
- Building WebRTC applications that need direct peer-to-peer audio/video or data channels.
- Implementing SIP-based VoIP systems with NAT traversal for residential or enterprise networks.
- Creating peer-to-peer file transfer or collaborative tools that bypass centralized servers.
- Developing real-time communication frameworks that require low-latency direct connections.
- Testing or prototyping network connectivity solutions that rely on ICE candidate negotiation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
aioice is actively maintained, has no known vulnerabilities, installs with minimal friction, and is the standard choice for ICE protocol support in Python asyncio applications. Use it if you are building WebRTC, SIP, or any peer-to-peer UDP application that needs NAT traversal; skip it if your use case does not require ICE or if you are not using asyncio.
Install
aioice on PyPI
Before you install
Low friction: pure Python wheel with only two lightweight runtime dependencies (dnspython and ifaddr). Actively maintained with a recent release and no known vulnerabilities.
Requires Python 3.9 or later; asyncio event loop must be running.
License in practice
BSD-3-Clause is permissive; you can use, modify, and distribute aioice with minimal restrictions, provided you include the license notice.
Quickstart
import asyncio
import aioice
async def main():
connection = aioice.Connection(ice_controlling=True)
await connection.gather_candidates()
# Add remote candidates and perform handshake
await connection.connect()
await connection.sendto(b'data', 1)
asyncio.run(main())
Verify before relying
- Whether the library handles all RFC 5245 edge cases or has known limitations in specific NAT scenarios.
- Performance characteristics under high-throughput or high-latency conditions.
- Compatibility with specific WebRTC implementations or SIP stacks beyond the documented use cases.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesdnspythonifaddr |
| Maintenance | Actively maintained 259 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,037,028 / month, #3,349 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: aioice-0.10.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ICE protocol implementation”
- aioiceaioice implements Interactive Connectivity Establishment (RFC 5245)…
- iapwsCalculates thermodynamic and transport properties of water, steam,…
- aiortcaiortc is a Python library implementing WebRTC and ORTC protocols for…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also aiortc · aiohappyeyeballs · go2rtc-client · anyio · pproxy · aiopnsense · pmd-net-proto · aioquic · asyncio-dgram · miniupnpc