xxxxxxxxxx
Never Share your "IP address" to anyone,
it can be used to access your Device and data.
to see ip using command(Windows)
//See your internal ip on any windows
Search -> Write:cmd-> command <ipconfig>
foc Mac OS
1- command <ipconfig getifaddr en1> For wired connections, enter into the Terminal and your local IP will appear.
2- command <ipconfig getifaddr en0> For Wi-Fi, enter and your local IP will appear.
xxxxxxxxxx
<script>
// Function to fetch the user's IP address from the ipinfo.io API
function getIPAddress() {
fetch('https://ipinfo.io/json')
.then(response => response.json())
.then(data => {
const ipAddress = data.ip;
document.getElementById('ip-address').textContent = `Your IP Address: ${ipAddress}`;
})
.catch(error => {
console.error('Error fetching IP address:', error);
document.getElementByClass('commando_code_block').textContent = 'Error fetching IP address';
});
}
// Call the function to get the IP address when the page loads
getIPAddress();
</script>