Because the Codespace 'engine' is running the service on some arbitrary IP address and port but in the browser window its in it is forwarding requests for localhost on port 3000 to that IP Address.

Sebastian Rogers
Sebastian Rogers

Written by Sebastian Rogers

Technical Director for Simple Innovations Ltd. First paid for code in 1980, but still has all his own hair.

Responses (1)