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

Changing ip from ec2 doc's sample #1546

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Changing ip from ec2 doc's sample #1546

wants to merge 1 commit into from

Conversation

drauedo
Copy link
Contributor

@drauedo drauedo commented Nov 7, 2024

With the current IP(172.17.0.X), the sample doesn't work. However, if we changed it to 127.0.01 it works as expected.

With the current IP, the sample doesn't work. However, if we changed it to 127.0.01 it works as expected.
Copy link

github-actions bot commented Nov 7, 2024

🎊 PR Preview has been successfully built and deployed to https://localstack-docs-preview-pr-1546.surge.sh 🎊

@viren-nadkarni
Copy link
Member

Hi @drauedo this is incorrect because we want to always use the container IP from the Docker bridge. The proposed change will not work on for example Mac OS using Docker Desktop

@@ -171,7 +171,7 @@ You can now use the IP address to test the Python Web Server.
Run the following command to test the Python Web Server:

{{< command >}}
$ curl 172.17.0.4:8000
$ curl 127.0.0.1:8000
Copy link
Member

@viren-nadkarni viren-nadkarni Dec 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What we could suggest is to use this alternative:

Suggested change
$ curl 127.0.0.1:8000
$ curl 172.17.0.4:8000
# or
$ curl 127.0.0.1:29043

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

Successfully merging this pull request may close these issues.

2 participants