Skip to content
← Back to Community
How to generate a repl.co link to my repl?
Profile icon
HusseinAA

Sorry for asking a basic question like this. But how can I generate a repl.co link to my repl? Is it possible?

The main objective is to create it and go to https://www.whatsmydns.net/ to get the IP of the server that runs my repl.

Cause I need to connect to a whitelist required mysql database.

Answered by Coder100 [earned 5 cycles]
View Answer
Comments
hotnewtop
Profile icon
Coder100

There are 2 ways:

  • the repl language is an HTML repl (https://repl.new/html)
  • you create a webserver on to 0.0.0.0:8080, for example, on nodejs:
require("http").createServer((_, res) => res.send("...")).listen(8080);
Profile icon
CosmicBear

it is generated when you create a webserver

Profile icon
AR199

What language are you writing your code in?

Profile icon
HusseinAA

@AR199 Python. I don't have a webserver, but a script