title: Error 403 when sending the request to the server ASP.NET Web Api
body: <p>I do customer authorization Android using ASP.NET Web API Web server. I enter my login name, press enter, get an answer the user is found. But it is only through the android emulator. When I try on a real device, the error 403 port on the router and open on your computer, too. Telephone and computer on the same network. Page which is on that server opens in your phone browser if u drive a computer and the port (192.168.0.101:7899). Here is a request to the server:</p>
  
  <pre><code>@GET("/login")
  void findLogin(@Query("login") String login, Callback&lt;Users&gt; callback);
  </code></pre>
  
  <p>That connection code:</p>
  
  <pre><code> public class RestClient {
         private UploadService  uploadService;
         private String URL ="http://192.168.0.101:7899/api/";       
         public RestClient(){
               Gson localGson = new GsonBuilder().create();
               this.uploadService = ((UploadService)new RestAdapter.Builder()
                   .setEndpoint(URL)
                   .setConverter(new GsonConverter(localGson))
                   .setRequestInterceptor(new RequestInterceptor() {
                              public void intercept(RequestFacade requestFacade) {
                                  if (URL.contains("192.168.0.101")) {                             
                                      requestFacade.addHeader("Host", localhost");
                                  }
                              }
                          })
                  .build().create(UploadService.class));    
          }
  </code></pre>
  
  <p>How to solve the problem with the error 403?
  p.s sorry for my bad english</p>