Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ernsheong/23c00e65219b10db7bc072772ea509d4 to your computer and use it in GitHub Desktop.

Select an option

Save ernsheong/23c00e65219b10db7bc072772ea509d4 to your computer and use it in GitHub Desktop.

Revisions

  1. ernsheong revised this gist Oct 8, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion access-mac-localhost-from-parallels-desktop-ie-edge.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    This issue is so infuriating that I'm going to take some time to write about it.

    1. MOST IMPORTANT. Your local development server must be bound to IP address 0.0.0.0. Some do this by default, but many don't. You need to make sure that you run your local server with correct IP bindings. You may need to run e.g. `polymer serve --hostname domain.local`, `hugo serve --bind 0.0.0.0`. If you use a named domain like `domain.local`, it has to be defined in `/etc/hosts` and pointing at 0.0.0.0.
    1. MOST IMPORTANT. Your local development server must be bound to IP address 0.0.0.0. Some do this by default, but many don't. You need to make sure that you run your local server with correct IP bindings. You may need to provide additional flags to your serve commands e.g. `polymer serve --hostname domain.local`, `hugo serve --bind 0.0.0.0`. If you use a named domain like `domain.local`, it has to be defined in `/etc/hosts` and pointing at 0.0.0.0.

    1. My Parallels setting is using Shared Network, nothing special there.

  2. ernsheong revised this gist Oct 6, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion access-mac-localhost-from-parallels-desktop-ie-edge.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    This issue is so infuriating that I'm going to take some time to write about it.

    1. MOST IMPORTANT. Your local development server must be bound to IP address 0.0.0.0. Some do this by default, but many don't. You need to make sure that you run your local server with correct IP bindings. You may need to run e.g. `polymer serve --hostname domain.local`, `hugo serve --bind 0.0.0.0`. If you use a named domain like `domain.local`, it has to be defined in /etc/hosts and pointing at 0.0.0.0.
    1. MOST IMPORTANT. Your local development server must be bound to IP address 0.0.0.0. Some do this by default, but many don't. You need to make sure that you run your local server with correct IP bindings. You may need to run e.g. `polymer serve --hostname domain.local`, `hugo serve --bind 0.0.0.0`. If you use a named domain like `domain.local`, it has to be defined in `/etc/hosts` and pointing at 0.0.0.0.

    1. My Parallels setting is using Shared Network, nothing special there.

  3. ernsheong revised this gist Oct 6, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions access-mac-localhost-from-parallels-desktop-ie-edge.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    ## Access macOS localhost from IE or Edge within Parallels Desktop

    This issue is so infuriating that I'm going to take some time to write about it.

    1. MOST IMPORTANT. Your local development server must be bound to IP address 0.0.0.0. Some do this by default, but many don't. You need to make sure that you run your local server with correct IP bindings. You may need to run e.g. `polymer serve --hostname domain.local`, `hugo serve --bind 0.0.0.0`. If you use a named domain like `domain.local`, it has to be defined in /etc/hosts and pointing at 0.0.0.0.
  4. ernsheong revised this gist Oct 6, 2017. 1 changed file with 8 additions and 2 deletions.
    10 changes: 8 additions & 2 deletions access-mac-localhost-from-parallels-desktop-ie-edge.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,11 @@
    This issue is so infuriating that I'm going to take some time to write about it.

    1. MOST IMPORTANT. Your local development server must be bound to IP address 0.0.0.0. Some do this by default, but many don't. You need to make sure that you run your local server with correct IP bindings. You may need to run e.g. `polymer serve --hostname domain.local` or `hugo serve --bind 0.0.0.0`. `domain.local` has to be defined in /etc/hosts and pointing at 0.0.0.0.
    1. MOST IMPORTANT. Your local development server must be bound to IP address 0.0.0.0. Some do this by default, but many don't. You need to make sure that you run your local server with correct IP bindings. You may need to run e.g. `polymer serve --hostname domain.local`, `hugo serve --bind 0.0.0.0`. If you use a named domain like `domain.local`, it has to be defined in /etc/hosts and pointing at 0.0.0.0.

    1.
    1. My Parallels setting is using Shared Network, nothing special there.

    1. Open macOS Terminal and type `ifconfig`. Look for the value under `vnic0` > `inet`. It is typically `10.211.55.2`.

    1. You can use this IP address from IE or Edge in Parallels Desktop. Don't forget the port number and protocol, e.g. `http://10.211.55.2:3000`

    2. It's annoying to remember this IP all the time, so you can edit `C:\Windows\System32\drivers\etc` (search for Notepad app and right-click to Run as Administrator, then search for this file from within Notepad so that you can actually edit it) and give that IP address a name, e.g. `localhost.mac`
  5. ernsheong revised this gist Oct 6, 2017. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion access-mac-localhost-from-parallels-desktop-ie-edge.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,5 @@
    This issue is so
    This issue is so infuriating that I'm going to take some time to write about it.

    1. MOST IMPORTANT. Your local development server must be bound to IP address 0.0.0.0. Some do this by default, but many don't. You need to make sure that you run your local server with correct IP bindings. You may need to run e.g. `polymer serve --hostname domain.local` or `hugo serve --bind 0.0.0.0`. `domain.local` has to be defined in /etc/hosts and pointing at 0.0.0.0.

    1.
  6. ernsheong created this gist Oct 6, 2017.
    1 change: 1 addition & 0 deletions access-mac-localhost-from-parallels-desktop-ie-edge.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    This issue is so