localhost

localhost

仕様書

名前解決規則

[27] 潜在的に信頼できる起源の判定では名前解決規則の性質が結果に影響します。 >>25, >>26

関連

[23] 127.0.0.1::1localdomain

歴史

[1] RFC 6761 - Special-Use Domain Names ( ( 版)) http://tools.ietf.org/html/rfc6761#section-6.3

[2] かつては file://localhost/file:/// は同義とされていました。

[3] RFC 6761 - Special-Use Domain Names ( 版) http://tools.ietf.org/html/rfc6761#section-6.3

Name resolution APIs and libraries SHOULD recognize localhost names as special and SHOULD always return the IP loopback address for address queries and negative responses for all other query types.

[4] この規定より事実上全てのシステムで localhost127.0.0.1名前解決されます。

[5] MySQL :: MySQL 5.7 Reference Manual :: 4.2.2 Connecting to the MySQL Server ( 版) https://dev.mysql.com/doc/refman/5.7/en/connecting.html

On Unix, MySQL programs treat the host name localhost specially, in a way that is likely different from what you expect compared to other network-based programs. For connections to localhost, MySQL programs attempt to connect to the local server by using a Unix socket file. This occurs even if a --port or -P option is given to specify a port number. To ensure that the client makes a TCP/IP connection to the local server, use --host or -h to specify a host name value of 127.0.0.1, or the IP address or name of the local server. You can also specify the connection protocol explicitly, even for localhost, by using the --protocol=TCP option.

[6] [secure-contexts] `*.localhost` + DNS ( (Mike West著, )) https://lists.w3.org/Archives/Public/public-webappsec/2016May/0006.html

[7] Support | Dell US (Dell US著, ) http://www.dell.com/support/home/us/en/19/Products/?IsTag=False&IsInvalidSelection=False

[8] >>7 アクセスすると、なぜか http://localhost:8884 へのアクセスが発生します。 JSONP を呼び出そうとしているようです。

[9] Exclude 'localhost.' and '.localhost.'. ( (mikewest著, )) https://github.com/w3c/webappsec-secure-contexts/commit/77175e335f96e52431888dfacf382c47e9637aeb

[10] Issue 224215 - chromium - Can't access a local webserver anymore - Monorail ( ()) https://bugs.chromium.org/p/chromium/issues/detail?id=224215

[11] Chrome incompatibilities - Mozilla | MDN ( ()) https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Chrome_incompatibilities

content_security_policy

Firefox does not support:

"http://127.0.0.1" or "http://localhost" as script sources: they must be served over HTTPS.

[12] Rewrite algorithm to handle sandboxes inside 'http://127.0.0.1/' (mikewest著, ) https://github.com/w3c/webappsec-secure-contexts/commit/4e14df58c1148bcb448992d4b579a50f4f881051

[13] ARIB TR-B39 () http://www.arib.or.jp/english/html/overview/doc/4-TR-B39v1_0-1p4.pdf#page=292

ベース URL のスキーマ等については特に規定しないが、受信機は、放送及び通信で伝送され

るアプリケーションの両方において、6.1.3.6 に示した形式の URL で参照した場合に、放送

で伝送されるアプリケーションデータへのアクセス(XMLHttpRequest による取得を含む。)

が可能となるベース URL を返す必要がある。また、少なくともアプリケーションが終了する

まではベース URL は不変でなければならない。

- ベース URL の例:"http://localhost:<port_number>/"

[14] `localhost` as Secure Context, take 2 (was Re: CfC: Transition "Secure Contexts" to CR; deadline August 2nd.) (Mike West著, ) https://lists.w3.org/Archives/Public/public-webappsec/2016Sep/0120.html

[15] draft-west-let-localhost-be-localhost-02 - Let 'localhost' be localhost. () https://tools.ietf.org/html/draft-west-let-localhost-be-localhost-02

[16] Dropping the 'localhost' exclusion. (mikewest著, ) https://github.com/w3c/webappsec-secure-contexts/commit/3ed6fb4248f18b08181ad92bc7e22249f3ad178b

[17] Webmention () https://webmention.net/draft/#h-avoid-sending-webmentions-to-localhost

During the discovery step, if the sender discovers the endpoint is localhost or a loopback IP address (127.0.0.0/8), it should not send the Webmention to that endpoint.

[18] Connecting to the Qlik Engine API ‒ Qlik Sense () http://help.qlik.com/en-US/sense-developer/3.2/Subsystems/EngineAPI/Content/GettingStarted/connecting-to-engine-api.htm

After you launch Qlik Sense Desktop and log in, you can connect to the Qlik Engine API using the following URI:

ws://localhost:4848/app/

[19] Cover localhost names for searchlists. (mikewest著, ) https://github.com/mikewest/internetdrafts/commit/d7084ebf36cce8cfd99bb1df3b33aa7957c959a7

[20] [DNSOP] DNSOP Call for Adoption - draft-west-let-localhost-be-localhost () https://www.ietf.org/mail-archive/web/dnsop/current/msg20963.html

[21] Networking features in Docker for Mac | Docker Documentation () https://docs.docker.com/docker-for-mac/networking/#use-cases-and-workarounds

I WANT TO CONNECT FROM A CONTAINER TO A SERVICE ON THE HOST

The Mac has a changing IP address (or none if you have no network access). From 17.06 onwards our recommendation is to connect to the special Mac-only DNS name docker.for.mac.localhost which will resolve to the internal IP address used by the host.

[22] Microsoft Edge でローカルホストにアクセスできない問題を解決する - Browser () http://browser.hatenablog.com/entry/2016/01/29/190856

初期状態ではアドレスバーに http://localhost や IP を入力してもローカルホストへのアクセスはできません。

[24] Strava Developers () https://developers.strava.com/docs/authentication/

redirect_uri

required string, in query URL to which the user will be redirected after authentication. Must be within the callback domain specified by the application. localhost and 127.0.0.1 are white-listed.