{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/17970","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/17970/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/17970/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/17970/events","html_url":"https://github.com/facebook/react-native/issues/17970","id":296884348,"number":17970,"title":"Dev Tools launch to 10.0.2.2 instead of localhost","user":{"login":"foggy1","id":19862658,"avatar_url":"https://avatars1.githubusercontent.com/u/19862658?v=4","gravatar_id":"","url":"https://api.github.com/users/foggy1","html_url":"https://github.com/foggy1","followers_url":"https://api.github.com/users/foggy1/followers","following_url":"https://api.github.com/users/foggy1/following{/other_user}","gists_url":"https://api.github.com/users/foggy1/gists{/gist_id}","starred_url":"https://api.github.com/users/foggy1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foggy1/subscriptions","organizations_url":"https://api.github.com/users/foggy1/orgs","repos_url":"https://api.github.com/users/foggy1/repos","events_url":"https://api.github.com/users/foggy1/events{/privacy}","received_events_url":"https://api.github.com/users/foggy1/received_events","type":"User","site_admin":false},"labels":[{"id":337217254,"url":"https://api.github.com/repos/facebook/react-native/labels/Ran%20Commands","name":"Ran Commands","color":"ededed","default":false},{"id":836679689,"url":"https://api.github.com/repos/facebook/react-native/labels/no-template","name":"no-template","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-13T21:03:21Z","updated_at":"2018-02-14T19:46:40Z","closed_at":null,"author_association":"NONE","body":"### Is this a bug report?\r\n\r\nYes\r\n\r\n### Have you read the [Contributing Guidelines](https://facebook.github.io/react-native/docs/contributing.html)?\r\n\r\nyes\r\n\r\n### Environment\r\n\r\nEnvironment:\r\n  OS: macOS High Sierra 10.13.3\r\n  Node: 8.7.0\r\n  Yarn: 1.3.2\r\n  npm: 5.6.0\r\n  Watchman: 4.7.0\r\n  Xcode: Xcode 9.2 Build version 9C40b\r\n  Android Studio: 2.3 AI-162.4069837\r\n\r\nPackages: (wanted => installed)\r\n  react: 16.2.0 => 16.2.0\r\n  react-native: 0.53.0 => 0.53.0\r\n\r\n### Steps to Reproduce\r\n\r\n1. Run app on Android.\r\n2. Turn on Debug mode.\r\n3. Bundler says \"Launching Dev Tools...\" and it opens chrome to http://10.0.2.2:8081/debugger-ui, which hangs because the debugger is on localhost.\r\n\r\n### Expected Behavior\r\n\r\nI expect the debugger to open Chrome to localhost:8081/debugger-ui as it always has before I upgraded to version 0.53.0.\r\n\r\n### Actual Behavior\r\n\r\nAs mentioned, it opens to http://10.0.2.2:8081/debugger-ui, which is inoperable. Nothing ever loads. The Devtools middleware has the wrong host for some reason.\r\n\r\n### Reproducible Demo\r\n\r\nYou can literally `react-native init` a new app right now, and it will do this. Here's a package json of an app I just generated that has this issue\r\n\r\n```\r\n{\r\n  \"name\": \"testingtesting\",\r\n  \"version\": \"0.0.1\",\r\n  \"private\": true,\r\n  \"scripts\": {\r\n    \"start\": \"node node_modules/react-native/local-cli/cli.js start\",\r\n    \"test\": \"jest\"\r\n  },\r\n  \"dependencies\": {\r\n    \"react\": \"16.2.0\",\r\n    \"react-native\": \"0.53.0\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"babel-jest\": \"22.2.2\",\r\n    \"babel-preset-react-native\": \"4.0.0\",\r\n    \"jest\": \"22.3.0\",\r\n    \"react-test-renderer\": \"16.2.0\"\r\n  },\r\n  \"jest\": {\r\n    \"preset\": \"react-native\"\r\n  }\r\n}\r\n```\r\n\r\nIt appears the app bundle is also being loaded from 10.0.2.2, but the debugger is not functioning at this host, which I'm guessing means that even if I navigate to a \"working\" debugger @ localhost, it's still not going to work. Credit to #17910 for first assuring me I was not crazy and this was a real issue.\r\n\r\nEdit: Complete shot in the dark here, but could it have something to do with fa574c6 ? (happy to pr this with some direction, although I know at least part of the issue is in a separate file where it is also incorrect about the host when launching chrome).\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/365723442","html_url":"https://github.com/facebook/react-native/issues/17970#issuecomment-365723442","issue_url":"https://api.github.com/repos/facebook/react-native/issues/17970","id":365723442,"user":{"login":"amcsi","id":116494,"avatar_url":"https://avatars2.githubusercontent.com/u/116494?v=4","gravatar_id":"","url":"https://api.github.com/users/amcsi","html_url":"https://github.com/amcsi","followers_url":"https://api.github.com/users/amcsi/followers","following_url":"https://api.github.com/users/amcsi/following{/other_user}","gists_url":"https://api.github.com/users/amcsi/gists{/gist_id}","starred_url":"https://api.github.com/users/amcsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcsi/subscriptions","organizations_url":"https://api.github.com/users/amcsi/orgs","repos_url":"https://api.github.com/users/amcsi/repos","events_url":"https://api.github.com/users/amcsi/events{/privacy}","received_events_url":"https://api.github.com/users/amcsi/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T19:46:40Z","updated_at":"2018-02-14T19:46:40Z","author_association":"NONE","body":"I'm getting this issue too on my new react-native project, although even manually going to `http://localhost:8081/debugger-ui/` doesn't work.\r\nI could swear this was working fine several weeks ago on a different react-native project.\r\n\r\nEnvironment:\r\nOS: Windows 10\r\nNode: v9.4.0\r\nnpm: 5.6.0\r\nAndroid Studio: 3.0.1\r\n\r\nreact-native-cli: 2.0.1\r\nreact-native: 0.53.0"}}
{"actor":{"display_login":"amcsi"}}