avatar
map hostnames to IP addresses on a local computer Network

• Assumption that we have Elasticsearch running locally on IP address 127.0.0.1 and port 9200, and you want to access it using the hostname elastic.flagtick.dev on your local computer, you can map this hostname to the IP address 127.0.0.1 in your hosts file. This way, you can access Elasticsearch at http://elastic.flagtick.dev:9200 in your web browser or make requests to that domain from your applications, and they will be directed to your local Elasticsearch instance.

» C:\Windows\System32\drivers\etc\hosts

127.0.0.1       local.elastic.flagtick.dev elastic.flagtick.dev

Note: Open the hosts file using a text editor by running the text editor as an administrator.

You need to login to do this manipulation!