Servers Running in Workspace Not Detected, No Forwarded URLs Generated

Hey everyone,

I’ve set up a black workspace, but any server I run there isn’t being detected, and no testing URLs are being generated.

For example, I tested this by running an Nginx container with the following command:

ws1-3910225:~/ws1$ docker run -p 84:80 nginx

Then, in another terminal, I verified it was working by running:

ws1-3910225:~/ws1$ curl http://localhost:84/

The output confirmed that Nginx was running successfully:

<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
...

However, when I check the Project IDX tab for the forwarded URL, nothing shows up. Here’s a screenshot of what I see:

Has anyone run into this issue before? Any ideas on how to fix it so the forwarded URLs are generated properly? Thanks!

Could you try starting the docker app from the preview command and pass in the $PORT arg?

Hey Rody,

Thanks for the reply! I figured out the issue—ports numbered 1000 or below don’t show up in the IDX tab. Switching to a port above 1000 (like 1001) fixed it.