Nov 24 2008
∞
Getting the current static IP in JS
- Make a request for checkip.dyndns.com
- Regex out the number
- Profit
var ipAddress = request.responseText.match(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/);