Git Product home page Git Product logo

Comments (1)

mikeizbicki avatar mikeizbicki commented on August 30, 2024

short answer: you need to enable port forwarding, and connect through that port

long answer: The IP address 127.0.0.1 always refers to the current computer. This is confusing because there are 3 different computers running (your laptop, the lambda server, and the docker container), and each one of those computers will refer to itself as 127.0.0.1.

When you run flask on the container, the flask program will tell you it is running on 127.0.0.1, but you cannot connect to it through that IP address, because that IP address means something different on your computer. Instead, you need the docker-compose.yml file to connect port 5000 on the container to port $UID on the lambda server, and then you use port forwarding (-L in ssh or the putty option) to connect port 8080 on your laptop to port $UID on the lambda server. Then, you will connect to http://127.0.0.1:8080, and that will be redirected through the lambda server to your container.

from cmc-csci143.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.