UPnP Port Forwarding: Difference between revisions

From Elvis Wiki
(Created page with "UPnP Port Forwarding The Universal Plug and Play (UPnP) Device Architecture, formerly known as the DCP Framework, provides a comprehensive set of protocols for seamless communication between controllers, known as control points, and devices within a networked environment. These protocols include essential functions such as device discovery, description, control, event notification, and presentation. Setup Raspberry Pi as UPnP Client UPnP ready Router Intern...")
 
No edit summary
Line 1: Line 1:
UPnP Port Forwarding
== UPnP Port Forwarding ==


The Universal Plug and Play (UPnP) Device Architecture, formerly known as the DCP Framework, provides a comprehensive set of protocols for seamless communication between controllers, known as control points, and devices within a networked environment. These protocols include essential functions such as device discovery, description, control, event notification, and presentation.
The Universal Plug and Play (UPnP) Device Architecture, formerly known as the DCP Framework, provides a comprehensive set of protocols for seamless communication between controllers, known as control points, and devices within a networked environment. These protocols include essential functions such as device discovery, description, control, event notification, and presentation.
Setup


    Raspberry Pi as UPnP Client
== Setup ==
    UPnP ready Router
    Internet access device (Mobile Phone)


Implementation
# Raspberry Pi as UPnP Client
# UPnP ready Router
# Internet access device (Mobile Phone)


    Enable UPnP on Router
== Implementation ==
    Connect Raspberry Pi with Router
 
    Check external IP (curl https://ipecho.net/plain ; echo)
# Enable UPnP on Router
    Check internal IP on Raspberry Pi (ifconfig)
# Connect Raspberry Pi with Router
    Install miniupnpc client on Raspberry Pi (sudo apt-get install miniupnpc)
# Check external IP (curl https://ipecho.net/plain ; echo)
    Set up port forwarding on Router via Raspberry Pi miniupnpc Client (upnpc- a <internalIpRaspberryPi> <internalPort> <externalPort> TCP)
# Check internal IP on Raspberry Pi (ifconfig)
    Set up index.html on Raspberry Pi and start http server in the same directory (python3 -m http.server <internalPort>)
# Install miniupnpc client on Raspberry Pi (sudo apt-get install miniupnpc)
    Access external IP and Port with any Browser from outside the network (http://<externalIP>:<externalPort>)
# Set up port forwarding on Router via Raspberry Pi miniupnpc Client (upnpc- a <internalIpRaspberryPi> <internalPort> <externalPort> TCP)
# Set up index.html on Raspberry Pi and start http server in the same directory (python3 -m http.server <internalPort>)
# Access external IP and Port with any Browser from outside the network (http://<externalIP>:<externalPort>)

Revision as of 19:08, 18 December 2024

UPnP Port Forwarding

The Universal Plug and Play (UPnP) Device Architecture, formerly known as the DCP Framework, provides a comprehensive set of protocols for seamless communication between controllers, known as control points, and devices within a networked environment. These protocols include essential functions such as device discovery, description, control, event notification, and presentation.

Setup

  1. Raspberry Pi as UPnP Client
  2. UPnP ready Router
  3. Internet access device (Mobile Phone)

Implementation

  1. Enable UPnP on Router
  2. Connect Raspberry Pi with Router
  3. Check external IP (curl https://ipecho.net/plain ; echo)
  4. Check internal IP on Raspberry Pi (ifconfig)
  5. Install miniupnpc client on Raspberry Pi (sudo apt-get install miniupnpc)
  6. Set up port forwarding on Router via Raspberry Pi miniupnpc Client (upnpc- a <internalIpRaspberryPi> <internalPort> <externalPort> TCP)
  7. Set up index.html on Raspberry Pi and start http server in the same directory (python3 -m http.server <internalPort>)
  8. Access external IP and Port with any Browser from outside the network (http://<externalIP>:<externalPort>)