upnp kde kubuntu from terminal


LIST PORTS

upnpc -l

ENABLE PORT 4668 TCP

upnpc -a $(hostname -I) 4668 4668 TCP

REMOVE A PORT 4668 TCP

upnpc -d 4668 TCP

here there are my own functions , add these to ~/.bashrc , then just

source ~/.bashrc

and you will able to use these

upnp-add-tcp
upnp-add-udp
upnp-r-tcp
upnp-r-udp
upnp-list

usage :

upnp-add-tcp port

upnp-add-tcp (){
upnpc -a $(hostname -I) $1 $1 TCP
}

upnp-add-udp (){
upnpc -a $(hostname -I) $1 $1 UDP
}

upnp-r-tcp (){
upnpc -d $1 TCP
}

upnp-r-udp (){
upnpc -d $1 UDP

}
upnp-list (){
upnpc -l

}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: