Ask coding questions

← Back to all posts
Server (Open Port) Not Recognized? Jekyll port 4000
ceilingrat

In my Repl, I'm running a Jekyll server on local port 4000

In the past, Repl.it just "auto-magically" recognizes open ports and makes them available publicly.

However, I'm having no luck when I test this URL:
https://ghpages-tests-1.ceilingrat.repl.co/

Within my Repl, my server is replying.
(See file run.sh for the curl command I've used for testing)

It appears the server is running, but isn't getting out to the public.

This has always "just worked" in the past.
What should I do to make my server public?

Thank you!!!!!

Answered by RoBlockHead [earned 5 cycles]
View Answer
Voters
RoBlockHead
ceilingrat
Comments
hotnewtop
RoBlockHead

So the issue here is that the server is opening on 127.0.0.1 and not 0.0.0.0, which is the IP that replit watches. I wish they would watch 127.0.0.1, but they don't

RoBlockHead

Also, any ports that are opened are sent to 80 and 443, so port doesn't matter

ceilingrat

@RoBlockHead AHA! This MUST be it.
Every server I ran in the past must have been running on 0.0.0.0 and I just didn't catch that detail.
You're a saint. THANK YOU!