Overview
Omegle P2P Location Finder is a JavaScript-based tool that intercepts WebRTC ICE candidates during video sessions to extract peer IP addresses.
The project then performs real-time IP geolocation, revealing approximate country, region, city, and coordinates. It serves as a privacy awareness demonstration.
Key Features
- Overrides WebRTC peer connection to intercept ICE candidate data
- Extracts remote IP when the ICE type is
srflx - Fetches location via IP geolocation API (e.g., ipgeolocation.io) :contentReference[oaicite:0]{index=0}
- Logs geographic details (country, state, city, latitude/longitude)
Purpose & Vision
The purpose is to expose how peer-to-peer protocols like WebRTC—used by platforms such as Omegle—can leak IPs and approximate locations :contentReference[oaicite:1]{index=1}.
The vision is to raise privacy awareness, encouraging users to consider protective measures such as VPNs, proxies, or relay servers to shield their real IP addresses.
Technologies Used
- JavaScript — Hooks browser WebRTC APIs for ICE candidate interception
- WebRTC (RTCPeerConnection) — Enables detection of peer candidates
- Geolocation API (e.g., ipgeolocation.io) — Converts IP into geographic data :contentReference[oaicite:2]{index=2}
Workflow
- Define your API key for IP geolocation services (e.g., ipgeolocation.io)
- Override
RTCPeerConnectionin the browser - Intercept ICE candidates and extract external (“srflx”) IP addresses
- Request geolocation and log location details to the console
- Paste code into the developer console on Omegle video chat to run
Results & Impact
- Demonstrates unintentional exposure of user IP due to P2P design
- Clearly logs approximate geographical data linked to IP
- Raises awareness of privacy vulnerabilities in real-time communication
Future Enhancements
- Add UI overlays (e.g., map or popups) instead of console logs
- Include indicators for VPN/proxy usage or connection obfuscation
- Support fallback to TURN servers or proxy-based relays for anonymity
Conclusion
Omegle P2P Location Finder is a concise yet powerful demo of how modern peer-to-peer systems may reveal sensitive IP data. It emphasizes the importance of proactive privacy safeguards during real-time peer communication.