Skip to content

Conversation

@Lisias
Copy link

@Lisias Lisias commented Oct 14, 2016

(Now doing properly)

This Pull Request enhances file serving by using NMAP's NCAT to handle the connections, using the --keep-alive option.

This keeps the connection alive between requests, allowing multiple file requests being served even on a slow device as a Raspberry PI 2011.12.

It also allows punching a hole on a NAT intranet, what permits serving to the Internet. A temerarious option, but I needed it to a demonstration.

There's a RPi serving it right now on http://home.lisias.net:8080/ for the next few hours (if down, please contact me), when the UPnP drops the fowarding until restart (what I do eventually and/or under request) - a measure to avoid leaving the server unnatended for too much time.

I don't expect the Pull Request to be accepted in the present state. Please fell free to discuss it and propose better solutions!

Thanks!

Lisias and others added 5 commits October 12, 2016 11:55
	Multiple connections are possible now.
	If the NCAT exits in error, the While still restart it.
Deleting port forward on exit.
   (there was no need to change the local port position!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant