Skip to content

Instantly share code, notes, and snippets.

@ConorShore
Created January 6, 2021 20:14
Show Gist options
  • Save ConorShore/e006623f9e61970688fb2c54ecf17c2e to your computer and use it in GitHub Desktop.
Save ConorShore/e006623f9e61970688fb2c54ecf17c2e to your computer and use it in GitHub Desktop.
find . -name "server.properties" | xargs cat | grep server-port | cut -f 2 -d "=" | xargs -n 1 -Ihere upnpc -r here here TCP
#Search current directory and subdirectories for minecraft servers and uses uPnP to automatically port forward them all
#Method
#find the server.properties files, search the with grep for the server-port field, then copy that into upnpc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment