serve icon indicating copy to clipboard operation
serve copied to clipboard

confusing debug-info when serving localhost only

Open gabor opened this issue 4 years ago • 0 comments

when i run serve like:

serve -l tcp://localhost:8888

i get this debug output:

   ┌───────────────────────────────────────────────────┐
   │                                                   │
   │   Serving!                                        │
   │                                                   │
   │   - Local:            http://127.0.0.1:8888       │
   │   - On Your Network:  http://192.168.0.111:8888   │
   │                                                   │
   └───────────────────────────────────────────────────┘

this is strange, i did not ask it to serve on the external IP address. in fact, the whole reason i am specifying the command-line is to not serve on the external IP address, only on localhost.

but if i test it with curl for example, it seems to only serve on localhost, not on the external IP address, so i assume only the debug output is incorrect.

gabor avatar Apr 04 '20 18:04 gabor