Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. VOXL
  4. Multiple UDP connections on port 14551

Multiple UDP connections on port 14551

Scheduled Pinned Locked Moved VOXL
7 Posts 4 Posters 1.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CY-1992
    wrote on last edited by
    #1

    Hi,
    I am using MAVSDK python and pymavlink in my project. I used the following code

    await drone.connect(system_address= "udp://:14551" )
    mavutil.mavlink_connection('udpin:0.0.0.0:14551')
    

    It throws an error "address is already in use". Can two local processes simultaneously have access to PX4 via the same port 14551?. The documentation shows voxl supports up to 16 simultaneous UDP connections.

    Eric KatzfeyE 2 Replies Last reply
    0
    • C CY-1992

      Hi,
      I am using MAVSDK python and pymavlink in my project. I used the following code

      await drone.connect(system_address= "udp://:14551" )
      mavutil.mavlink_connection('udpin:0.0.0.0:14551')
      

      It throws an error "address is already in use". Can two local processes simultaneously have access to PX4 via the same port 14551?. The documentation shows voxl supports up to 16 simultaneous UDP connections.

      Eric KatzfeyE Offline
      Eric KatzfeyE Offline
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #2

      @CY-1992 That is not a Voxl issue, it's a general networking issue. There are lot's of sources of information about this on the Internet. Here is a quick example: https://stackoverflow.com/questions/1694144/can-two-applications-listen-to-the-same-port

      1 Reply Last reply
      0
      • C CY-1992

        Hi,
        I am using MAVSDK python and pymavlink in my project. I used the following code

        await drone.connect(system_address= "udp://:14551" )
        mavutil.mavlink_connection('udpin:0.0.0.0:14551')
        

        It throws an error "address is already in use". Can two local processes simultaneously have access to PX4 via the same port 14551?. The documentation shows voxl supports up to 16 simultaneous UDP connections.

        Eric KatzfeyE Offline
        Eric KatzfeyE Offline
        Eric Katzfey
        ModalAI Team
        wrote on last edited by
        #3

        @CY-1992 In general, I would try to use a different port if possible and not try to reuse them.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          CY-1992
          wrote on last edited by
          #4

          voxludp.png
          @Eric-Katzfey Based the docs, I thought multiple UDP connections can be established with voxl-vision-px4

          1 Reply Last reply
          0
          • Chad SweetC Offline
            Chad SweetC Offline
            Chad Sweet
            ModalAI Team
            wrote on last edited by
            #5

            Secondary IP is configured through the voxl-vision-px4 configuration

            It looks like you are trying to use the same UDP port twice throu mavsdk

            secondary_ip is found here:
            https://docs.modalai.com/voxl-vision-px4-telemetry/#voxl-vision-px4-mavlink-telemetry-routing

            1 Reply Last reply
            0
            • Chad SweetC Offline
              Chad SweetC Offline
              Chad Sweet
              ModalAI Team
              wrote on last edited by
              #6

              I see the following statement, we will check internally and see if the documentation is correct

              "Up to 16 simultaneous UDP connections can be established with voxl-vision-px4. These can be connections to qGroundControl, MAVROS, MAVSDK, or any custom software. voxl-vision-px4 listens for mavlink heartbeats on the standard mavlink port 14550 and opens a new link when it receives a new one. "

              1 Reply Last reply
              0
              • James StrawsonJ Offline
                James StrawsonJ Offline
                James Strawson
                ModalAI Team
                wrote on last edited by
                #7

                Port 14550 is meant for external connections to different IP addresses such as multiple ground control instances. Only one connection to localhost is supported on port 14551. To support multiple local IP connections a separate port and thread would likely need to be opened.

                You can also have multiple local processes communicate through the "vvpx4_mavlink_io" pipe using libmodal_pipe instead of UDP.

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                ModalAI
                Categories Recent Tags ModalAI.com Docs
                © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups