question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

access via IP not host

See original GitHub issue

Hi, the docker-compose example need to access via host name:

$ docker-compose up
$ curl -H "Host: whoami.local" localhost
I'm 5b129ab83266

Is there anyway to configure so that I can access directly via IP, without specifying HOST?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
v-stickykeyscommented, Jul 26, 2019

@smcpeck This is what I am looking to do too. Currently running on a digital ocean droplet and don’t want/need to register a domain name for this so I would like to be able to access this without a host header. I’m not a devops person (bear with me)–is it bad to assume my DO ip won’t change?

Asked another way… How would I get server_name _; to point to my server running on the exposed port.

0reactions
max-prtsrcommented, Aug 17, 2021

tryVIRTUAL_HOST=your_ip

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can only access server via IP address, not hostname - TechNet
I have a server running on a raspberry pi than can be accessed with a win 10 system browser (Chrome or Edge) via...
Read more >
Can access shared network files by IP, but not by host name
open Network and Sharing Center and select Change advanced sharing settings. Turn on network discovery and Save changes. And also try changing ...
Read more >
Can connect via IP but not Hostname - QB Nightmare
Solution: Put the IP and Hostname in the hosts file is a quick and dirty fix.
Read more >
Why can I communicate using IP address but not DNS name?
Right click on "My Network Places" and hit Properties. This will pull up the Network Connections window. Older OS's have a bit of...
Read more >
HIME - 25. Can Access computers by IP addresses, but not by ...
On my local network, I can type the ip address like so: \\xxx.xxx.xxx.xxx of a computer and access the shared files/printers of that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found