{"action":"created","issue":{"url":"https://api.github.com/repos/joyent/node/issues/9195","labels_url":"https://api.github.com/repos/joyent/node/issues/9195/labels{/name}","comments_url":"https://api.github.com/repos/joyent/node/issues/9195/comments","events_url":"https://api.github.com/repos/joyent/node/issues/9195/events","html_url":"https://github.com/joyent/node/issues/9195","id":57392891,"number":9195,"title":"Node v0.12: HTTP server with implicit address binding reports addresses in IPv6 format?","user":{"login":"mildmojo","id":103495,"avatar_url":"https://avatars.githubusercontent.com/u/103495?v=3","gravatar_id":"","url":"https://api.github.com/users/mildmojo","html_url":"https://github.com/mildmojo","followers_url":"https://api.github.com/users/mildmojo/followers","following_url":"https://api.github.com/users/mildmojo/following{/other_user}","gists_url":"https://api.github.com/users/mildmojo/gists{/gist_id}","starred_url":"https://api.github.com/users/mildmojo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mildmojo/subscriptions","organizations_url":"https://api.github.com/users/mildmojo/orgs","repos_url":"https://api.github.com/users/mildmojo/repos","events_url":"https://api.github.com/users/mildmojo/events{/privacy}","received_events_url":"https://api.github.com/users/mildmojo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joyent/node/labels/http","name":"http","color":"e10c02"},{"url":"https://api.github.com/repos/joyent/node/labels/net","name":"net","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-11T23:15:31Z","updated_at":"2015-02-12T21:16:27Z","closed_at":null,"body":"I'm not completely sure what I'm seeing. I first noticed that I was getting different results for `http.IncomingMessage.connection.remoteAddress` between v0.10.36 and v0.12.0 on OSX 10.8.5:\r\n\r\n```javascript\r\nvar http = require('http');\r\n\r\nvar server = http.createServer(function(req, res) {\r\n\tres.write(req.connection.remoteAddress + '\\n');\r\n\tres.write(server.address().address + '\\n');\r\n\tres.end();\r\n});\r\nserver.listen(8080);\r\n\r\n/*\r\n$ curl localhost:8080 # v0.10.36\r\n127.0.0.1\r\n127.0.0.1\r\n\r\n$ curl localhost:8080 # v0.12.0\r\n::ffff:127.0.0.1\r\n::\r\n*/\r\n```\r\n\r\nIf I explicitly bind the server to `127.0.0.1`, v0.12 matches v0.10.36. The docs for [http.Server.listen](http://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback) still say \"If the hostname is omitted, the server will accept connections directed to any IPv4 address (INADDR_ANY).\" I expected to get an IPv4-formatted address from `.remoteAddress`.\r\n\r\nIs this an intended API change? Thanks."},"comment":{"url":"https://api.github.com/repos/joyent/node/issues/comments/74154301","html_url":"https://github.com/joyent/node/issues/9195#issuecomment-74154301","issue_url":"https://api.github.com/repos/joyent/node/issues/9195","id":74154301,"user":{"login":"cjihrig","id":2512748,"avatar_url":"https://avatars.githubusercontent.com/u/2512748?v=3","gravatar_id":"","url":"https://api.github.com/users/cjihrig","html_url":"https://github.com/cjihrig","followers_url":"https://api.github.com/users/cjihrig/followers","following_url":"https://api.github.com/users/cjihrig/following{/other_user}","gists_url":"https://api.github.com/users/cjihrig/gists{/gist_id}","starred_url":"https://api.github.com/users/cjihrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjihrig/subscriptions","organizations_url":"https://api.github.com/users/cjihrig/orgs","repos_url":"https://api.github.com/users/cjihrig/repos","events_url":"https://api.github.com/users/cjihrig/events{/privacy}","received_events_url":"https://api.github.com/users/cjihrig/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T21:16:27Z","updated_at":"2015-02-12T21:16:27Z","body":"@trevnorris [this code](https://github.com/joyent/node/blob/master/lib/net.js#L1078-L1086) ignores the desired address family, even if one is present since no address was provided. Do you think this is worth updating?"}}