title: dev server returned error code 403 react native
body: <p>Followed the steps <a href="https://facebook.github.io/react-native/docs/getting-started.html#content" rel="noreferrer">here</a> to try react-native android on a windows box. </p>
  
  <ol>
  <li>On a separate prompt I executed <strong>react-native start</strong> which is running fine</li>
  <li>Started the AVD from AVD Manager</li>
  <li>Executed <strong>react-native run-android</strong></li>
  </ol>
  
  <p><em>BUILD SUCCESSFUL
  Total time: 27.632 secs
  Starting the app on emulator-5554 (D:\software\Android\android-sdk/platform-tool
  s/adb -s emulator-5554 shell am start -n com.awesomeproject/.MainActivity)...
  Starting: Intent { cmp=com.awesomeproject/.MainActivity }</em></p>
  
  <ol start="4">
  <li>Executed <strong>react-native run-android</strong> on a separate console from within same folder</li>
  </ol>
  
  <p>But I see an error which I'm having hard time to resolve. Please suggest resolution.</p>
  
  <p><a href="https://i.stack.imgur.com/1ziaY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1ziaY.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/yT2gk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yT2gk.png" alt="enter image description here"></a></p>
  
  <p><strong>---EDIT---</strong></p>
  
  <p>Possibly the issue is that 8081 port is in use by McAfee. So I updated the server.js to run dev port on 8088 and now when I browse <strong><em><a href="http://localhost:8088/index.android.bundle?platform=android" rel="noreferrer">http://localhost:8088/index.android.bundle?platform=android</a></em></strong> I can see JS loading. </p>
  
  <p><strong>But how do I make android use this address instead of default **10.0.2.2:8081</strong>?** I found a file AndroidInfoHelpers.java which contains that 10.0.2.2 path but not sure if that's the way as being a JAVA file I possibly need to recompile whole program. There should be a simpler way to point android app to use a different port for dev server.</p>
  
  <p>Also, when I execute <strong>react-native run-android</strong> the first line that gets output says "JS Server not recognized.. Continuing with the build" which likely is shouting the same thing.</p>