title: Java getLocalAddr() returning IPV6 address
body: <p>I have some code to determine whether a web request has been made from the local machine.  It uses HttpServletRequest.getLocalAddr() and compares the result to 127.0.0.1.</p>
  
  <p>However, in the last day this has started failing for requests made from a Chrome browser.  The address is now in IPV6 format rather than IPV4, i.e. 0:0:0:0:0:0:0:1.  If IE is used rather than Chrome the address is still IPV4.</p>
  
  <p>What would cause this?  Is it something to do with Chrome, maybe an update to the browser?  Or is it more likely to be my environment?</p>