Common connection problems
Failed to connect error
Failed to connect error
Symptom: Application displays “Failed to connect” when attempting to start streaming.Root causes:
- TCP server is not running or not listening on the specified port
- Incorrect IP address or port number
- Firewall blocking the connection
- Network routing issues
-
Verify the server is running
-
Test basic connectivity
-
Check firewall settings
- Windows: Allow TCP Streamer through Windows Defender Firewall
- macOS: System Settings → Network → Firewall → Allow incoming connections
- Linux: Configure
ufworiptablesto allow the port
-
Verify connection details
- Ensure IP address is correct (try
127.0.0.1orlocalhostfor local servers) - Confirm port number matches your server configuration
- Default Snapcast TCP port is 4953
- Ensure IP address is correct (try
Firewall blocking connections
Firewall blocking connections
Symptom: Connection fails even though server is running and reachable.Windows firewall configuration:
- Open Windows Defender Firewall with Advanced Security
- Click Inbound Rules → New Rule
- Select Program → Browse to TCP Streamer executable
- Allow the connection
- Apply to all profiles (Domain, Private, Public)
- Open System Settings → Network
- Click Firewall → Options
- Add TCP Streamer to allowed applications
- Ensure “Block all incoming connections” is not checked
Auto-reconnect not working
Auto-reconnect not working
Symptom: Connection drops and auto-reconnect fails to restore it.Expected behavior:
- Auto-reconnect retries connection every 3 seconds after failure
- Visible in the activity log with connection attempt messages
- Works for network interruptions, server restarts, and temporary issues
-
Verify auto-reconnect is enabled
- Check that Auto-reconnect toggle is ON in the automation settings
- Save the profile after enabling
-
Check the activity log
- Look for “Attempting to reconnect…” messages
- If no retry messages appear, auto-reconnect may not be enabled
-
Test the connection manually
- Stop streaming
- Restart your TCP server
- Start streaming again to verify server is accepting connections
-
Network stability issues
- If auto-reconnect continuously fails, check network stability
- High packet loss or unstable WiFi can prevent successful reconnection
- Consider using a wired connection for critical streaming
Auto-reconnect is designed for temporary interruptions. If the server is permanently unreachable, manual intervention is required.
Connection storms (v1.9.0 fixes)
Connection storms (v1.9.0 fixes)
Symptom: Multiple rapid connection attempts causing server overload or ban.Background: Earlier versions of TCP Streamer could create “connection storms” where rapid reconnection attempts overwhelmed the server.Version 1.9.0 improvements:
- Implemented exponential backoff for reconnection attempts
- Added connection rate limiting
- Improved graceful disconnect handling
- Better detection of unrecoverable connection states
-
Update to v1.9.0 or later
- Download from the releases page
- Connection storm fixes are only available in v1.9.0+
-
Adjust reconnection behavior
- Disable auto-reconnect temporarily if causing issues
- Manually restart streaming after resolving server problems
-
Server-side rate limiting
- Configure your TCP server to handle reconnection attempts gracefully
- For Snapcast, check server logs for connection patterns
Version 1.9.0+ includes comprehensive connection storm prevention. Upgrade if you’re experiencing this issue.
Connection drops during streaming
Connection drops during streaming
Symptom: Stream starts successfully but connection drops after some time.Common causes:
-
Network instability
- WiFi interference or weak signal
- Router dropping long-lived TCP connections
- ISP throttling or connection resets
-
Write timeout (v1.6.0 protection)
- TCP Streamer includes a 5-second write timeout
- If the server stops accepting data for 5+ seconds, connection is closed
- Check server logs for processing delays or buffer overflows
-
Server resource issues
- Server running out of memory or CPU
- Too many simultaneous client connections
- Disk I/O bottlenecks
-
Improve network stability
- Use wired Ethernet connection instead of WiFi
- Move closer to WiFi router or add access point
- Use the WiFi (Poor) network preset for unstable connections
-
Monitor server health
-
Adjust buffer settings
- Enable Adaptive Buffer to handle jitter
- Increase ring buffer size for unstable networks
- Use network preset appropriate for your connection type
Cannot connect to localhost/127.0.0.1
Cannot connect to localhost/127.0.0.1
Symptom: Server is running locally but TCP Streamer cannot connect to localhost.Possible causes:Solutions:
-
Server binding to specific interface
- Server may be bound to external interface only (not localhost)
- Check server configuration for bind address
-
IPv4 vs IPv6 confusion
localhostmay resolve to IPv6::1but server only listens on IPv4- Try
127.0.0.1explicitly instead oflocalhost
-
Port already in use
- Another process may have claimed the port
- Check for conflicting services
- Configure server to bind to
0.0.0.0(all interfaces) or explicitly to127.0.0.1 - Use the explicit IP address instead of hostname
- Verify no port conflicts with
netstatorlsof
Network diagnostics
Using the built-in network quality monitor
TCP Streamer includes real-time network quality monitoring:- Excellent: Stable connection, minimal jitter (<5ms)
- Good: Acceptable performance, some jitter (5-20ms)
- Fair: Noticeable jitter, may need buffer adjustment (20-50ms)
- Poor: High jitter, expect dropouts (>50ms)
- Enable adaptive buffering to compensate
- Switch to a more conservative network preset
- Investigate network infrastructure issues
Connection health checklist
Server is running and listening on the correct port
IP address and port are correct in TCP Streamer
Firewall allows outbound TCP connections
Network connectivity is stable (ping test succeeds)
No other applications are conflicting with the port
Auto-reconnect is enabled for resilience
Advanced troubleshooting
Enable detailed logging
Check the activity log in TCP Streamer for detailed connection events:- Connection attempts and results
- Network errors and timeouts
- Buffer resize events
- Auto-reconnect triggers
Test with netcat
Create a simple TCP server for testing:Packet capture analysis
For deep network debugging:- TCP handshake completion (SYN, SYN-ACK, ACK)
- Data transmission patterns
- Connection resets or timeouts
- Retransmissions indicating packet loss
Getting help
If you’re still experiencing connection issues:- Check the GitHub Issues for similar problems
- Review your server’s documentation for connection requirements
- Open a new issue with:
- TCP Streamer version
- Operating system
- Server type and version
- Network configuration (WiFi/Ethernet)
- Relevant log excerpts