TeamSpeak-Systems / teamspeak-linux-docker-images

docker build files for TeamSpeak servers
Other
114 stars 51 forks source link

Change file transfer port is not working #105

Open EgyipTomi425 opened 3 weeks ago

EgyipTomi425 commented 3 weeks ago

Hi! I tried to change the default ports. I succesfully changed the voice and quary ports, and able to connect my server, but I could not upload files. In the logs I see, the file transfer port is default.

2024-06-11 15:00:03.239963|INFO    |ServerLibPriv |   |TeamSpeak 3 Server 3.13.7 (2022-06-20 12:21:53)
2024-06-11 15:00:03.240079|INFO    |ServerLibPriv |   |SystemInformation: Linux 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 Binary: 64bit
2024-06-11 15:00:03.240149|INFO    |ServerLibPriv |   |Using hardware aes
2024-06-11 15:00:03.241669|INFO    |DatabaseQuery |   |dbPlugin name:    MariaDB plugin, version 3, (c)TeamSpeak Systems GmbH
2024-06-11 15:00:03.242394|INFO    |DatabaseQuery |   |dbPlugin version: 2
2024-06-11 15:00:03.263125|WARNING |Accounting    |   |Unable to open licensekey.dat, falling back to limited functionality
2024-06-11 15:00:03.266589|INFO    |Accounting    |   |Licensing Information
2024-06-11 15:00:03.266635|INFO    |Accounting    |   |licensed to       : Anonymous
2024-06-11 15:00:03.266653|INFO    |Accounting    |   |type              : No License
2024-06-11 15:00:03.266681|INFO    |Accounting    |   |starting date     : Tue Feb  1 00:00:00 2022
2024-06-11 15:00:03.266710|INFO    |Accounting    |   |ending date       : Thu Jul  1 00:00:00 2027
2024-06-11 15:00:03.266737|INFO    |Accounting    |   |max virtualservers: 1
2024-06-11 15:00:03.266755|INFO    |Accounting    |   |max slots         : 32
2024-06-11 15:00:04.026448|INFO    |              |   |Puzzle precompute time: 751
2024-06-11 15:00:04.026959|INFO    |FileManager   |   |listening on 0.0.0.0:30033, [::]:30033
2024-06-11 15:00:04.067442|INFO    |Query         |   |Using a query thread pool size of 2
2024-06-11 15:00:04.088985|INFO    |Query         |   |listening for query on 0.0.0.0:8003, [::]:8003
2024-06-11 15:00:04.089111|INFO    |CIDRManager   |   |updated query_ip_allowlist ips: 127.0.0.1/32, ::1/128, 

My compose file:

services:
  teamspeak:
    image: teamspeak:latest
    restart: unless-stopped
    ports:
      - "8001:8001/udp"
      - "8002:8002"
      - "8003:8003"
    environment:
      TS3SERVER_DB_PLUGIN: ts3db_mariadb
      TS3SERVER_DB_SQLCREATEPATH: create_mariadb
      TS3SERVER_DB_HOST: db
      TS3SERVER_DB_USER: root
      TS3SERVER_DB_PASSWORD: 'u2xE#hdxqt@7gq$9P'
      TS3SERVER_DB_NAME: teamspeak
      TS3SERVER_DB_WAITUNTILREADY: 30
      TS3SERVER_LICENSE: accept
      TS3SERVER_DEFAULT_VOICE_PORT: 8001
      TS3SERVER_FILETRANSFER_PORT: 8002

      TS3SERVER_QUERY_PORT: 8003
    volumes:
      - ts3server_data:/var/ts3server
    deploy:
      resources:
        limits:
          memory: 2g
          cpus: '1.0'
        reservations:
          memory: 128m

  db:
    image: mariadb
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: 'u2xE#hdxqt@7gq$9P'
      MYSQL_DATABASE: teamspeak
    volumes:
      - db_data:/var/lib/mysql
    deploy:
      resources:
        limits:
          memory: 2g
          cpus: '1.0'
        reservations:
          memory: 128m

volumes:
  ts3server_data:
  db_data:

The generated ini file contains the filetransfer_port=8002 line.

Can someone help please? Thanks

BentHaase commented 2 weeks ago

For TS3SERVER_FILETRANSFER_PORT: XXXXX to work you also need to set TS3SERVER_FILETRANSFER_IP: 0.0.0.0 (or any other IP you desire).

:information_source: If no IP is set, the port setting is ignored.

Cheers!