google / WebFundamentals

Former git repo for WebFundamentals on developers.google.com
Apache License 2.0
13.85k stars 2.57k forks source link

Missing information for "Access Local Servers / Map to custom local domains" #7605

Open nuragic opened 5 years ago

nuragic commented 5 years ago

Page Affected:

https://developers.google.com/web/tools/chrome-devtools/remote-debugging/local-server

What needs to be done?

Hi,

First of all many thanks for your articles.

I was trying to follow this guide today but I ended up so frustrated and without achieving the goal I had to have a mapping to my custom local domain in order to test in my android phone, that I thought it'd be worth sharing my experience and feedback.

I think this concrete part is really vague and it's missing the crucial part of the information needed to achieve the main purpose of the section:

To map a custom domain you must run a proxy server on your development machine. Examples of proxy servers are Charles, Squid, and Fiddler.

I think it'd be great if we could expand more on that information needed to access the custom domain mapping e.g. http://chrome.devtools/ because I believe that a lot of web devs would struggle configuring a local custom DNS resolver / reverse proxy / both.

I tried to install all those libs but nothing worked; moreover, some of them are not free and also provide 99% more functionality that would be needed in reality.

For example, I have a local server correctly configured on my macbook; I can access it via localhost/ on Chrome or via e.g localhost:8000/ in my Android phone (after having set up port forwarding). I've also configured the proxy for the wifi connection... But, how could the proxy server resolve my custom domain (just an entry in /etc/hosts file)?

Thanks!

nuragic commented 5 years ago

Just found that #7174 is also related.