cuddly-crowd-48028
08/14/2025, 3:11 PMtall-airline-16756
08/14/2025, 3:11 PMtall-airline-16756
08/14/2025, 3:11 PMdevkey
◦ API Secret: secret
1. By default, the signal server listens on 127.0.0.1:7880
. If you want to access it from other devices on your network, just run:
livekit-server --dev --bind 0.0.0.0
3. Production Setup
1. Generate API Key and Secret:
For production, you’ll want to create your own API key and secret. You can easily generate these with the CLI:
livekit-server generate-keys
2. Custom Configuration:
Set up a configuration file (like config.yaml
) to define your production settings. Here’s an example:
port: 7880
bind_addresses:
- "0.0.0.0"
rtc:
udp_port: 7882
tcp_port: 7881
3. Start the Server with Configuration:
livekit-server --config config.yaml
4. Ports
• TCP/7880 for signaling
• TCP/7881 for RTCP
• UDP/7882 for WebRTC traffic
5. Verification
• Double-check that your server is up and running by looking at the logs. You should see:
starting LiveKit server
Notes
• Keep in mind, development mode (--dev
) isn’t secure and isn’t meant for production.
• For production, make sure to set up SSL/TLS properly and configure your firewall.
• The server supports both TCP and UDP for WebRTC traffic, but UDP usually gives you better performance.
If you want to dive deeper or explore more advanced setups, check out the official LiveKit deployment documentation. We’re here to help you every step of the way!
Sources: Running LiveKit locally | LiveKit Docs | pkg/service/server.go | Running LiveKit on AWScuddly-crowd-48028
08/14/2025, 3:12 PMtall-airline-16756
08/14/2025, 3:13 PMlivekitserver.exe
file, just follow these simple steps:
1. First, unzip the downloaded ZIP file to a folder on your computer.
2. Next, open Command Prompt or PowerShell and head over to the folder where you put the livekitserver.exe
file.
3. Now, start the server in development mode by running:
`.
livekitserver.exe --dev`This kicks things off with a default API key and secret (`devkey`: secret
), so you’re good to go.
4. If you want the server to be reachable from other devices on your network, just run:
.
livekitserver.exe --bind 0.0.0.0 --dev
5. Finally, check the logs to make sure everything’s running smoothly. You should see messages confirming the server is active and listening on ports (default is 7880
for HTTP and 7882
for UDP).
If you hit any bumps or want help tweaking the setup, just give me a shout—I’m here to help!cuddly-crowd-48028
08/14/2025, 3:19 PMtall-airline-16756
08/14/2025, 3:20 PMdevkey
◦ API Secret: secret
If you hit any bumps or have questions along the way, just let me know—I’m here to help!
Sources: cmd/server/main.gocuddly-crowd-48028
08/14/2025, 3:26 PMtall-airline-16756
08/14/2025, 3:26 PMcuddly-crowd-48028
08/14/2025, 3:27 PMtall-airline-16756
08/14/2025, 3:28 PMcuddly-crowd-48028
08/14/2025, 3:29 PMtall-airline-16756
08/14/2025, 3:31 PM<ws://localhost:7880>
while developing. If you’re on LiveKit Cloud, you can find the WebSocket URL in your project settings.
2. Generate an Access Token:
Make sure you have a valid access token that includes the room name, participant identity, and permissions. This token is essential for authentication.
3. Use a Client SDK:
Pick a client SDK that fits your platform—whether that’s JavaScript, Flutter, Python, Android, or Go. Here’s a quick example for JavaScript:
import { Room } from 'livekit-client';
const room = new Room();
await room.connect('<ws://localhost:7880>', 'your-token-here');
console.log('Connected to room:', room.name);
4. Set Up Event Listeners:
Before you connect, set up event listeners to keep an eye on room events like participants joining, track subscriptions, or disconnections.
5. Test the Connection:
Once you’re connected, double-check everything’s working by interacting with participants, publishing tracks, or trying out tools like LiveKit Meet.
If you want a hand with a specific SDK or need more details, just let me know—I’m here to help!
Sources: README.md | livekit-rtc/livekit/rtc/room.py | Android quickstart | LiveKit Docs | room.go | example/sample.tscuddly-crowd-48028
08/14/2025, 3:32 PMtall-airline-16756
08/14/2025, 3:32 PM<wss://your-project-id.livekit.cloud>
.
2. Pick a Client SDK:
Choose the client SDK that fits your platform. For example, in JavaScript:
import { Room } from 'livekit-client';
const room = new Room();
await room.connect('<wss://your-project-id.livekit.cloud>', 'your-token-here');
console.log('Connected to room:', room.name);
3. Set up Event Listeners:
Before you connect, it’s a good idea to set up event listeners to keep track of things like participants joining, track subscriptions, and disconnections.
4. Give it a Test:
Once you’re connected, try interacting with participants or publishing tracks to make sure everything’s working smoothly.
If you want a hand with a specific SDK or need more details, just let me know—I’m here to help!cuddly-crowd-48028
08/14/2025, 3:34 PMtall-airline-16756
08/14/2025, 3:35 PMwss://<your-project-id>.livekit.cloud
. You can easily find this in your Project Settings.
2. Generate an Access Token:
Make sure you have a valid access token that includes the room name, participant identity, and permissions. These tokens are generated server-side using your API key and secret. Here’s a quick example in Python:
from livekit.api import AccessToken
api_key = "your-api-key"
api_secret = "your-api-secret"
access_token = AccessToken(api_key, api_secret) \
.with_identity("participant-1") \
.with_name("Participant 1") \
.with_grants(VideoGrants(room_join=True, room="my-room")) \
.to_jwt()
3. Connect to the Room:
Next, use a client SDK to connect. Here’s how you might do it in JavaScript:
import { Room } from 'livekit-client';
const room = new Room();
await room.connect('<wss://your-project-id.livekit.cloud>', 'your-token-here');
console.log('Connected to room:', room.name);
4. SIP URL Usage:
The SIP URL comes into play for telephony integrations, like connecting to PSTN numbers or SIP trunks. To add a SIP participant, you’ll use the CreateSIPParticipant
endpoint. Here’s a Python example to get you started:
from livekit.api import SIPClient, CreateSIPParticipantRequest
sip_client = SIPClient(wsUrl, api_key, api_secret)
response = sip_client.CreateSIPParticipant(
CreateSIPParticipantRequest(
room_name="my-room",
participant_identity="sip-participant",
sip_uri="<sip:caller@sip.exampl>e.com"
)
)
If you have any questions or need a hand with SIP integration or connecting to your room, just give me a shout—I’m here to help!
Sources: Connecting to LiveKit | LiveKit Docs | test/cloud/config.go