skip to Main Content

Reactjs – Changing Localhost

i am a beginner (i don't even know how to ask the question correctly) and i try creating my first clone website as a project with the help of youtube tutorial and everything went well but i have one issue…

VIEW QUESTION

How can we Find Ip Address using Javascript code?

const peerConnection = new RTCPeerConnection({ iceServers: [] }); peerConnection.createDataChannel(''); peerConnection.createOffer() .then((offer) => peerConnection.setLocalDescription(offer)) .catch((error) => console.log(error)); peerConnection.onicecandidate = (event) => { if (event.candidate) { console.log(`Client's IP address is ${event.candidate.address}`); } };

VIEW QUESTION
Back To Top
Search