Genymotion view site localhost

I am creating a website and I would like to see how it is displayed on an Android smartphone, so I downloaded Genymotion. I do not see any pages on my local site from Genymotion ("Bad request - invalid host name").

When I run the Visual Studio solution, the home page address

http://localhost:18207

therefore, following the advice I found, for example here , I entered the following addresses in Genymotion:

http://10.0.3.2:18207

http://192.168.56.1:18207

http://(my ip address):18207

but I always have the above error or sometimes a timeout error.

Thanks so much for any suggestion!

+4
source share
4 answers

:

http://blog.binarybits.net/applications/iis-express-http-error-400-the-request-hostname-is-invalid/

, . . IIS Express, Genymotion. , 8080:

1. C:\Users\\Documents\IISExpress\config\applicationhost.config, * localhost

<site name="WebSite1" id="1" serverAutoStart="true">
 <application path="/">
  <virtualDirectory path="/" physicalPath="PATH TO YOUR SITE" />
 </application>
 <bindings>
  <binding protocol="http" bindingInformation=":8080:*" /> <!-- CHANGE THIS LINE -->
 </bindings>
</site>

2. ACL, ( admin)

netsh http add urlacl url=http://*:8080/ user=everyone

3. , Genymotion, .

http://10.0.3.2:8080/

, , , .

+5

, , . MVC Web Api- ( Visual Studio 2013).

1 : 8080: localhost : 8080: *, . localhost, *. :

 <bindings>
  <binding protocol="http" bindingInformation=":8080:localhost" /> <!-- Existing binding -->
  <binding protocol="http" bindingInformation=":8080:" /> <!-- New binding. Note that there is no asterisk(*)--> 
 </bindings>

, , 8080 , . 53533.

+1

- 192.168.56.1. . , , , VirtualBox. , , vbox0 Linux. , Genymotion.

Genymotion VM DHCP-, 192.168.56.101. Genymotion . , - , Genymotion 192.168.56.1.

0

http://yourHostIpAdress/YourWebSite ( )

At least it worked when publishing the site locally through IIS

0
source

All Articles