Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script type="text/typescript" src="TypeScript.ts"></script>
<script type="text/typescript">
console.log('ip');
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://rawgit.com/Microsoft/TypeScript/master/lib/typescriptServices.js"></script>
<script src="https://rawgit.com/basarat/typescript-script/master/transpiler.js"></script>
</head>
<body>
</body>
</html>
// put into TypeScript.ts
// using jquery
$.get("https://geoip-db.com/json/geoip.php?jsonp=?", function(response) {
var ip:string = response.latitude + " " + response.longitude
document.body.innerHTML = `<div>${ip}</div>`
}, "jsonp");
The most helpful TYPESCRIPT solutions
get client ip address using typescriptTYPESCRIPT Click to see more ... 6.3K 243