Skip to content
Sign upLog in
← Back to Community
How can I view my HTML files on Replit webview?
Profile icon
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
Profile icon
JoeannaMadrigal
Profile icon
mariga
Comments
hotnewtop
Profile icon
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.

Profile icon
mariga

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