![]() It’s all written in Go and is open for contributors. I haven’t been able to get it to work on my Mac personally, but if you have access to a Linux box or a Raspberry Pi, this just might be the solution for you. There’s an executable for a range of Linux systems and Windows. It comes as a single executable file that works as the server and the client in one. How to use PageKiteĬonst localtunnel = require ( 'localtunnel' ) ( async ( ) => ) ( ) boringproxyīoringproxy is a newer option that’s totally free and open source under the MIT license! Its main focus appears to be making it easier for people to self host websites on their computers. They’ve even got a front-end relay server in Sydney, Australia, so this could potentially provide faster speeds for Australian developers. It can be disabled if you’re okay with these being public. PageKite doesn’t appear to have a traffic inspector like ngrok, but it does have rather incredible features like a built-in firewall that blocks access to common attack targets like /wp-admin, /xampp, phpMyAdmin pages … and so on. You do need to pay more to get more in this case though, with those paying larger amounts getting a larger quota, a longer term of service, custom subdomains, and so forth. After that it has a pay-what-you-want system (a minimum of USD$4 a month, or free if you work on free open-source software). You can sign up for a free trial for a month and 2.5GB of transfer quota. They’ve even got it working with the Minecraft protocol to allow people to run a Minecraft server on their local machine. Once youve done that, Ill be able to change my downvote to an upvote. I suggest you add that recommendation to your answer. Server.listen(port, "0.0.0.PageKite is a Python-based “dynamic tunnel based reverse proxy” that works on Windows, macOS, Linux, and even Android devices! It’s very similar to ngrok but has been around for quite a bit longer, and it appears quite a bit more battle-tested for a larger set of uses. Nevertheless, not only have you now given a citation, but youve also given a more complete answer, with a possible solution to OPs question being: 'add localhost to firefoxs config'. The code for the express app's server.js is: const express = require("express") Ĭonst port = parseInt(, 10) || 3000 Ĭonst dev = _ENV != "production" But I reinstalled wsl and am hosting through NodeJs / Express only. So, I figured it wasn't a problem with the network.Īll the post I have read suggest that if the site is accessible through 127.0.0.1 and not through ip then you can configure the server config files for Apache or Nginx. Look also into the Console.app log and filter to see what information you can get from there. I want to disable the page that is shown. But when I type localhost, server doesnt connect, it shows nothing. ![]() sudo httpd -k stop sudo httpd -k restart. On my Mac when I type my localhosts ip into google bar, it shows a page written It works. I enabled the IIS from "Program and Features" and it seems to work fine on localhost and ip. At this point try stopping and restarting the server manually. EDIT: So I tested it in my home network and by connecting from the phone to my pc with hotspot and it works fine, I think the problem have to do with the router in my company, but I cant figure out why it works from PCS and laptop but not from phone (tested only on Android). I have tried turning off firewall in windows and wsl but it didn't work. Netstat -tupln when running node js application Also if i try to go to another web application running on port 80 it works 192.168.1. When I access it from the host server localhost:8000 it responds ok, 127.0.0.1:8000 also works, but 192.168.1.7:8000 does not work. ![]() When I run any NodeJs application or a server like Apache or Nginx everything works fine on localhost or 127.0.0.1 but doesn't work when I use my local IP address (192.168.1.65). Hello Im running a web application on port 8000. Other posts such as Apache (and other services) work on localhost, but not IP address suggest firewall settings and also checking to make sure Im listening not just on localhost but 80. ![]() But I cant access this webserver from another machine. I recently switched from Linux to WSL2 (Ubuntu 20.04) on Windows 10. I can navigate to 'localhost' and it works. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |