How to Show IPAddress and Client Name in SharePoint 2010/2013/2016/2019 or Office 365?

Hello SharePointers,

Here is the JSOM script to display IP address of the Client Machine in SharePoint 2010/2013/2016 & Office 365.

<script type=”text/javascript”>
$(function(){
$.getJSON(‘https://api.ipify.org?format=json’, function(data){
$(“input[title=’MyIPAddress’]”).val(data.ip);
});
});
</script>

Happy SharePointing 🙂

Leave a Reply

Your email address will not be published.