-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Explore more efficient ways to scan for running web servers #382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Why not just connect to localhost HTTP ports every 5s? That should be really cheap. |
if we're just checking for liveliness we can do this ROM katacoda/docker-http-server:health
HEALTHCHECK --timeout=1s --interval=1s --retries=3 \
CMD curl -s --fail http://localhost:80/ || exit 1 |
and regarding ports, I think we can just lock on a port using http nonetheless. |
The idea is to provide a list of listening web servers, so for example if you were to run It would probably open up the Maybe we don't need to scan at all, but in that case we might need some good way to educate users about the Edit: actually we'd need something similar to the |
Why do we need to provide a list? User's explicitly run webservers anyway so they know exactly what port its running on. We should just use the common ports and then let them enter custom ports. |
I agree with Anmol. There's also going to be a lot of noise in the list. Here's a
Users probably wouldn't want to connect to these |
@coadler True, although none of that is running on @nhooyr What do you mean by letting them enter custom ports? Edit: I think the problem that needs solving is that users know the port, but they don't know the URL to get to that port (for example |
One other use case to keep in mind while discussing possible solutions: For the local app, we depend on port scanning to know which ports to forward from the remote host to the local host. This lets you go to |
So by default you'd look at ports like 8080, 80 and whatnot (usual http ports0 for servers on the sidebar but also let the user enter their own custom ports in case they want those scanned too. But I don't think port forwarding is the move. How about we just use a VPN and forward all localhost traffic onto their instance? Would be very efficient and make everything seamless. |
Ahh, interesting, I like that, and VPN sounds like a solid move to me. |
Currently we use
node-netstat
. Increasing the poll timeout to 5s greatly improved CPU load but it would be ideal if we could find a more efficient way to get the ports that have something listening on them.The text was updated successfully, but these errors were encountered: