I have a project where it requires me to control two drones and receive video streamings for both (udp packets) on the Host Computer (Ubuntu VM). The two drones are connected to my 2 of my Raspb Pis each through Wi-Fi and the Raspb Pis are connected under the same network as the host computer via LAN. However, as I am new to networking, I am unable to get the forwarding correctly.

Here are my networking information.

  1. Drone IP Default Address- ''
  2. UDP Video stream: ''
  3. Host Computer:
  4. VM:
  5. RPI1: eth0- wlan0- DroneIP
  6. RPI2: etho- wlan0- DroneIP The script below will be used to conduct the udp forward for one drone.
# /etc/init.d/tello2

# Provides:          tello2
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Forward UDP packets to/from Tello
# Description:       See https://github.com/clydemcqueen/tello_ros

case "$1" in
    echo "Starting tello2"
    /home/pi/udp_forward/udp_forward 12002 8889 &
    /home/pi/udp_forward/udp_forward 8890 13002 &
    /home/pi/udp_forward/udp_forward 11111 14002 &
    echo "Stopping tello2"
    killall udp_forward
    echo "Usage: /etc/init.d/tello2 {start|stop}"
    exit 1

exit 0

Additional questions I would like consult are whether if it's necessary to do port forwarding to enable UDP packet forwarding. Since it's a school project, i hope to use a router without internet connection. Thank you all.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.