I can`t access OS X local web-server from guest windows when using 3g modem

Discussion in 'Windows Virtual Machine' started by vahrammer, Jun 4, 2013.

  1. vahrammer

    vahrammer Bit poster

    Messages:
    1
    Hello, sorry for my bad English.
    The problem described in the title. I can do that when using wifi connection, but can`t with 3g modem.
    I have nginx as frontend to serve static and nodejs as backend. Here is my OS X /private/etc/hosts file:
    Code:
    ...
    
    127.0.0.1 dev-testy.com
    127.0.0.1 www.dev-testy.com
    
    Here is nginx config:
    Code:
    http {
      include               mime.types;
      default_type          application/octet-stream;
      sendfile              on;
      keepalive_timeout     65;
    
      charset               utf-8;
      gzip                  on;
    
      server {
        listen              80;
        server_name         dev-testy.com www.dev-testy.com;
    
        location / {
          proxy_pass        http://localhost:8000;
          proxy_set_header  Host $host;
        }
    
        location ^~ /statics/ {
          root              /Users/vahrammer/Sites/Localhost/testy.com;
        }
      }
    }
    
    When i connected to internet with my 3g modem, I get such ip 10.230.68.31 (for example).
    In guest Windows i edit C:\system32\drivers\etc\hosts and flush dns cache - no effect.
    Here is hosts of Windows:
    Code:
    ...
    
    10.211.55.255	dev-testy.com
    10.211.55.255	www.dev-testy.com
    
    Thank you.
     

Share This Page