Ask coding questions

← Back to all posts
How can I view my HTML files on Replit webview?
mariga

Hi, I am having trouble viewing my HTML documents when I run the node files and I have no idea how to access the webview

Answered by NFadhlurrahman [earned 5 cycles]
View Answer
Voters
mariga
Comments
hotnewtop
NFadhlurrahman

Try change the hostname to 0.0.0.0 instead of localhost. I made a server using Node.js HTTP module, and it only works in Replit if the hostname is 0.0.0.0.

mariga

@NFadhlurrahman thanks. I made the changes and it works perfectly.