webrtc-ip
webrtc-ip copied to clipboard
💻 Simplified IP client using WebRTC.
This software is for educational purposes only. This software should not be used for illegal activity. The author is not responsible for its use.
Quick Start
To use webrtc-ips
, you need to include the <script
tag in the <head>
section of your HTML document.
<script src="https://cdn.jsdelivr.net/gh/joeymalvinni/webrtc-ip/dist/production.min.js"></script>
<!---- OR use the dev bundle: ----->
<script src="https://cdn.jsdelivr.net/gh/joeymalvinni/webrtc-ip/dist/bundle.dev.js"></script>
Now you have access to the getIPs()
function:
// Using Promises:
getIPs().then(data=>{
console.log(data.join('\n'))
})
// Using Async/Await:
(async function(){
let data = await getIPs();
console.log(data.join('\n'));
})();
Examples
The example (located at /example
) is being hosted on Heroku.
Authors
The author of webrtc-ips is Joey Malvinni
License
Apache 2.0