Cannot use the port 8890


#1

I am using a github code, that locally saves files on the server using the port 8890 and the ip. It’s in the format of “IP:PORT”, But after I click on the generated link it doesn’t seem to work. I was asked to consult the support for the correct port and that may be the issue.
Is 8890 the correct port or am. I doing something wrong?


#2

You need to make your code listen on whatever port is in the PORT environment variable. That’s usually 3000.


#3

I have changed it to 3000 but still it doesn’t work.


#4

What are you using for the IP address? Glitch projects don’t use a fixed IP address, so we’d suggest using your project URL. Let us know the project name and we’ll take a look. If your project is private, either make it public temporarily or DM me a join link so we can view the code. Thanks.