Skip to content

Rustdesk with custom port #606

@pradeepsimba

Description

@pradeepsimba

Default port docker compose file

  services:
    hbbs:
      image: rustdesk/rustdesk-server:latest
      container_name: hbbs
      restart: unless-stopped
      environment:
        - RUST_LOG=info
        # Default ports, no need to override HBBS_PORT/HBBR_PORT
      command: hbbs
      ports:
        - "21115:21115"         # TCP ID/Signaling
        - "21116:21116/udp"     # UDP NAT traversal
        - "21117:21117"         # TCP relay coordination
      volumes:
        - ./data:/root/.config/rustdesk
  
    hbbr:
      image: rustdesk/rustdesk-server:latest
      container_name: hbbr
      restart: unless-stopped
      environment:
        - RUST_LOG=info
        # Default HBBR_PORT=21118 automatically
      command: hbbr
      ports:
        - "21118:21118"         # TCP relay
        - "21118:21118/udp"     # UDP relay
      volumes:
        - ./data:/root/.config/rustdesk

this works perfectly

but if I set custom port the client not connecting to the server below is my code

    services:
      hbbs:
        image: rustdesk/rustdesk-server:latest
        container_name: hbbs
        restart: unless-stopped
        command: hbbs
        ports:
          - "8188:21115"         # TCP for ID/Signaling
          - "8187:21116"         # TCP for ID registration and heartbeat
          - "8187:21116/udp"     # UDP for ID registration and heartbeat
          - "8189:21118"         # TCP for web client support
        volumes:
          - ./data:/root/.config/rustdesk
    
      hbbr:
        image: rustdesk/rustdesk-server:latest
        container_name: hbbr
        restart: unless-stopped
        command: hbbr
        ports:
          - "8190:21117"         # TCP relay
          - "8191:21119"         # TCP relay for web client
        volumes:
          - ./data:/root/.config/rustdesk
Image

what I did wrong ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions