Connection Issues
Client Can’t Connect to Server
Symptoms:Connection refusedConnection timeoutFailed to connect
Test Network Connectivity
- Check router port forwarding
- Check network path (VPN, proxy)
- Try localhost first (
127.0.0.1)
Verify Credentials
Client ID and passkey must match exactly:Common mistakes:
- Wrong client ID (typo)
- Wrong passkey (case-sensitive hex)
- Using old credentials (terminal restarted)
Authentication Failed - Invalid Passkey
Error:ConnectResponse(status=INVALID_KEY)
Cause: Passkey mismatch between client and server
Solutions:
Solution 1: Verify Passkey
Solution 1: Verify Passkey
Get passkey from terminal output:Use exact hex string in client:
Solution 2: Restart Terminal
Solution 2: Restart Terminal
If terminal was restarted, passkey changed:
Solution 3: Check Encryption Key
Solution 3: Check Encryption Key
If server uses encryption, ensure it’s configured:Mismatch will cause authentication to fail silently.
Session Won’t Reconnect After Disconnect
Symptoms:- Client exits instead of reconnecting
Session terminatedmessage- No automatic retry
| Cause | Solution |
|---|---|
| Terminal process died | Restart terminal: echo "test" | ./undying-terminal-terminal.exe |
| Server crashed | Restart server: ./undying-terminal-server.exe |
| Passkey changed | Terminal restarted → passkey changed → use new passkey |
| Network path broken | Check VPN, proxy, routing |
| Client in one-shot mode | Don’t use -c without --noexit for interactive sessions |
Performance Issues
High Latency / Slow Response
Symptoms:- Keystrokes appear after delay
- Slow command output
- Laggy terminal
Measure Network Latency
- LAN: 1-5ms
- Internet: 20-100ms
- International: 100-300ms
- Check network path (tracert)
- Check bandwidth (speedtest)
- Consider closer server
Check Recovery Buffer
After reconnect, large buffer replay causes delay:If large (>10MB):
- Wait for catchup to complete
- To reduce keepalive frequency: requires a recompile
Check Server Load
- Reduce concurrent sessions
- Add more RAM/CPU
- Check for runaway terminal processes
Memory Usage Growing
Symptoms:- Server memory increases over time
- Eventually crashes or slows down
-
Recovery Buffer Growth (expected)
- Each session: up to 128MB (64MB × 2 directions)
- 10 sessions: up to 1.28GB
- Normal behavior
-
Memory Leak (bug)
- Stale sessions not cleaned up
- Known issue: Server doesn’t clean up on pipe disconnect
Terminal Issues
Shell Exits Unexpectedly
Symptoms:- Terminal process terminates
- Session ends
- Must restart terminal
| Cause | Trigger | Prevention |
|---|---|---|
| User exits shell | exit, Ctrl+D | Never exit shell, disconnect client instead |
| Shell crash | Syntax error, segfault | Fix script errors |
| ConPTY error | Windows bug | Update Windows |
| Terminal timeout | Idle too long | Keep client connected or use screen/tmux |
Garbled Output / Encoding Issues
Symptoms:- Special characters appear as
?or boxes - Colors broken
- Line wrapping wrong
- UTF-8 Encoding
- Terminal Resize
- Clear Screen
Colors Not Working
Cause: ConPTY virtual terminal sequences not enabled Solution:Configuration Issues
Config File Not Loading
Symptoms:- Server uses default values
- Changes in
ut.cfgignored
-
Correct location:
-
File permissions:
-
File format:
-
Server restart:
Port Already in Use
Error:bind: address already in use
Named Pipe Errors
Error:Failed to connect to named pipe
Causes:
-
Server not running:
-
Wrong pipe name:
-
Permission denied:
- Run as same user as server
- Or grant permissions (advanced)
Tunnel / Port Forwarding Issues
Tunnel Not Working
Symptoms:- Connection to forwarded port fails
Connection refusedon tunnel
Forward Tunnel: Connection Refused
Forward Tunnel: Connection Refused
- Service running on remote?
netstat -ano | findstr :9090(on server) - Firewall blocking? Check server firewall rules
- Correct destination? Try
telnet remote-service 9090from server - Tunnel established? Check client output for tunnel messages
Reverse Tunnel: Not Accessible
Reverse Tunnel: Not Accessible
- Server listening?
netstat -ano | findstr :3000(on server) - Local service running?
netstat -ano | findstr :8000(on client) - Client connected? Session must be active
- Firewall on server? Check inbound rules for port 3000
Port Already in Use
Port Already in Use
Tunnel Breaks After Reconnect
Expected Behavior: Active TCP connections through tunnels do not survive client reconnects. Why: Both ends of TCP connection must be preserved. When client disconnects:- Client-side connections drop
- Server-side connections drop
- Applications must reconnect
Windows-Specific Issues
ConPTY Errors
Error:CreatePseudoConsole failed
Cause: Windows version < Build 17763
Solution: Update Windows
Service Won’t Start
Error:The service did not respond to the start or control request in a timely fashion
Solutions:
-
Check service config:
-
Check binary path:
-
Check permissions:
- Service runs as SYSTEM by default
- Config file must be readable by SYSTEM
-
Check logs:
DLL Missing Errors
Error:The code execution cannot proceed because libsodium.dll was not found
Cause: Required DLLs not in PATH or binary directory
Solution:
libsodium.dlllibcrypto-*.dll(OpenSSL)libssl-*.dll(OpenSSL)
Getting More Help
Enable Verbose Logging
Collect Diagnostic Information
Before reporting issues:Report a Bug
Include in your report:- Steps to reproduce
- Expected behavior
- Actual behavior
- Diagnostic information (above)
- Error messages (full output)