-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnect.bat
More file actions
37 lines (32 loc) Β· 1.31 KB
/
Copy pathconnect.bat
File metadata and controls
37 lines (32 loc) Β· 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
echo === WebRTC VLM Multi-Object Detection Demo ===
echo.
REM Get local IP
for /f "tokens=2 delims=:" %%a in ('ipconfig ^| findstr "IPv4.*192.168"') do set LOCAL_IP=%%a
set LOCAL_IP=%LOCAL_IP: =%
if "%LOCAL_IP%"=="" set LOCAL_IP=192.168.1.13
echo π₯οΈ Laptop IP: %LOCAL_IP%
echo.
echo π± Phone Connection URLs:
echo.
echo 1. π§ͺ Test Connectivity First:
echo http://%LOCAL_IP%:3000/test.html
echo.
echo 2. π± Phone Camera Stream:
echo http://%LOCAL_IP%:3000/phone.html
echo.
echo 3. π» Main Demo (Laptop):
echo http://localhost:3000
echo.
echo π Testing network accessibility...
powershell -Command "if (Test-NetConnection -ComputerName %LOCAL_IP% -Port 3000 -InformationLevel Quiet) { Write-Host 'β
Port 3000 is accessible' } else { Write-Host 'β Port 3000 is NOT accessible' }"
powershell -Command "if (Test-NetConnection -ComputerName %LOCAL_IP% -Port 8000 -InformationLevel Quiet) { Write-Host 'β
Port 8000 is accessible' } else { Write-Host 'β Port 8000 is NOT accessible' }"
echo.
echo β Troubleshooting if phone can't connect:
echo β’ Ensure phone and laptop on same WiFi network
echo β’ Try the test.html URL first
echo β’ Check router settings (disable AP isolation)
echo β’ Try mobile hotspot as alternative
echo β’ Temporarily disable Windows Firewall
echo.
pause