Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

How open HTTP traffic

How open HTTPS traffic Help Me?
image_2021-10-11_190544

1 year ago

Voters

personssss
personssss

Comments

TopNew
1
Highwayman
Highwayman

If you are asking how to make an https server on Replit:
Replit automatically serves an https alternative to your normal http server, so you don't need to make an actual https server, just make a normal http server.

If you are asking how to get your server load at all:
It is loading, it just takes forever, which isn't really anything to do with your code, that's just a Replit problem.

1 year ago
1
Highwayman
Highwayman

Btw: about that image you have... ignore that message you already have all that just reload the webpage a couple times or wait a couple minutes and it should be up.

also, if

@SixBeeps
already answered your question, then please mark him as the answerer so that no one else thinks the question is still open.
@Highwayman

1 year ago
1
SixBeeps
SixBeeps

You need to host the app on HTTP using the http package. This is taken from my Node template that I use all the time.

var express = require('express'); var http = require('http'); var app = express(); var server = http.Server(app); app.set('port', 5000); app.get('/', function(request, response) { response.send('howdy'); }); server.listen(5000, function() { console.log('Starting server on port 5000'); });
1 year ago
Load more