Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When i use mahimahi CLI mm-delay,my local server stop to work,how to solve the problem #113

Closed
lixiaoming0017 opened this issue Sep 14, 2017 · 1 comment

Comments

@lixiaoming0017
Copy link

I am a student from Communication University of China , I have a problem when i use mahimahi, there is a localserver in my computer ,the server's address is http://localhost:8333, when i use the mahimahi to simulate the network with mm-delay 40 ,my localserver stop working, and the google chrome just show "can not connect the server",but when i stop the mm-delay,the server start work again ,and the google chrome show the response word, how can i solve the problem.Thank you very much

@keithw
Copy link
Collaborator

keithw commented Sep 14, 2017

`localhost' refers to the IP address of the local interface -- and from inside a container, local really means "local" (still inside the container). This is not where your webserver is running.

You can use the $MAHIMAHI_BASE environment variable to refer to the local interface of the "main" container on your computer, outside the mahimahi container. This is probably what the webserver is listening to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants