kiro-mobile-bridge 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/package.json +1 -1
- package/src/server.js +6 -1
package/README.md
CHANGED
|
@@ -104,6 +104,18 @@ Open the Network URL on your phone to monitor Kiro.
|
|
|
104
104
|
- Check your firewall allows connections on port 3000
|
|
105
105
|
- Try the IP address shown in the server output (not `localhost`)
|
|
106
106
|
|
|
107
|
+
#### Linux: Firewall blocking connections
|
|
108
|
+
|
|
109
|
+
If you're on Linux and can't connect from your phone, your firewall may be blocking port 3000. Allow it with:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# UFW (Ubuntu, Arch, etc.)
|
|
113
|
+
sudo ufw allow 3000/tcp
|
|
114
|
+
|
|
115
|
+
# Or with iptables directly
|
|
116
|
+
sudo iptables -A INPUT -p tcp --dport 3000 -j ACCEPT
|
|
117
|
+
```
|
|
118
|
+
|
|
107
119
|
## Security Notes
|
|
108
120
|
|
|
109
121
|
#### Only run this on trusted networks.
|
package/package.json
CHANGED
package/src/server.js
CHANGED
|
@@ -38,6 +38,11 @@ const __dirname = dirname(__filename);
|
|
|
38
38
|
// =============================================================================
|
|
39
39
|
|
|
40
40
|
const PORT = process.env.PORT || 3000;
|
|
41
|
+
|
|
42
|
+
// =============================================================================
|
|
43
|
+
// State Management
|
|
44
|
+
// =============================================================================
|
|
45
|
+
|
|
41
46
|
const cascades = new Map(); // cascadeId -> { id, cdp, metadata, snapshot, css, snapshotHash, editor, editorHash }
|
|
42
47
|
const mainWindowCDP = { connection: null, id: null };
|
|
43
48
|
|
|
@@ -359,7 +364,7 @@ httpServer.listen(PORT, '0.0.0.0', () => {
|
|
|
359
364
|
const localIP = getLocalIP();
|
|
360
365
|
console.log('');
|
|
361
366
|
console.log('Kiro Mobile Bridge');
|
|
362
|
-
console.log('
|
|
367
|
+
console.log('─────────────────────');
|
|
363
368
|
console.log(`Local: http://localhost:${PORT}`);
|
|
364
369
|
console.log(`Network: http://${localIP}:${PORT}`);
|
|
365
370
|
console.log('');
|