What I did at work today

Nov 24 2008

Getting the current static IP in JS

  1. Make a request for checkip.dyndns.com
  2. Regex out the number
  3. Profit
var ipAddress = request.responseText.match(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/);

Page 1 of 1