2

I am using aws sam local to developer few lambdas/nanoservices

I start the lambda container with:

sudo sam local start-api --docker-network db-pros

where db-pros is the database container

when I go to 127.0.0.1:3000/lambda-name everything works fine however when I try to connect from the test device (Android phone which is connected to WiFi) I cannot.

Tried to use the IP (both Ethernet and docker0) from ifconfig and I still can't connect.

I do not know if it's possible and if yes how.

user93466
  • 141
  • 2
  • 12

1 Answers1

7

Use sam local start-api --host 0.0.0.0 instead.

Undo
  • 25,519
  • 37
  • 106
  • 129
skylr lu
  • 86
  • 1
  • 2