rustdesk吧 关注:260贴子:803
  • 15回复贴,共1

ID重复了怎么办

只看楼主收藏回复

自建的中转服务器,有2台电脑生成的ID重复了,点更改ID提示服务器不支持,怎么办?求大神支招


IP属地:广东1楼2024-08-15 18:17回复
    重装ID不就变了


    IP属地:重庆来自Android客户端2楼2024-08-16 07:54
    收起回复


      IP属地:广东3楼2024-08-16 16:54
      回复
        只要打开rustdesk软件,不论安装与否,都是这个ID


        IP属地:广东4楼2024-08-16 16:55
        回复
          安装了127版本后,提示注册服务器不可用。换回119版本也连接不上了,左下角一直显示未连接。
          香港那边局域网内另外一台之前能正常控制的安装119版本的电脑,现在也连接不上了,同样提示注册服务器不可用。


          IP属地:广东5楼2024-08-16 18:01
          回复
            付上ID更改命令吧,方便有需要的朋友
            :: INFO:
            :: RustDesk Github: https://github.com/rustdesk/rustdesk
            :: RustDesk ID Changer Github: https://github.com/abdullah-erturk/RustDesk-ID-Changer
            ::===============================================================================================================
            @璐村惂鐢ㄦ埛_000076K馃惥 off
            mode con:cols=90 lines=30
            title RustDesk ID Changer by mephistooo2 ^| http://www.TNCTR.com
            net file 1>nul 2>nul && goto :Main || powershell -ex unrestricted -Command "Start-Process -Verb RunAs -FilePath '%comspec%' -ArgumentList '/c ""%~fnx0""""'"
            goto :eof
            ::===============================================================================================================
            :Main
            cls
            if exist "C:\Program Files\RustDesk\rustdesk.exe" (
            cd "C:\Program Files\RustDesk\"
            for /f "delims=" %%i in ('rustdesk.exe --get-id ^| more') do set rustdesk_id=%%i
            goto :Run
            ) else (
            echo.
            echo RustDesk 还没有安装,请先安装 RustDesk 后再尝试。
            echo.
            echo 按任意键继续...
            pause >nul
            exit
            )
            :Run
            pushd %temp% >nul 2>&1
            echo.
            echo ==========================================================================================
            echo.
            echo RustDesk ID 修改工具
            echo.
            echo 1 - 将 RustDesk ID 设置为电脑名称 : "%computername%"
            echo.
            echo 2 - 将 RustDesk ID 设置为 9 位随机数字
            echo.
            echo 3 - 手动设定 RustDesk ID
            echo.
            echo 4 - 退出
            echo.
            echo ==========================================================================================
            echo.
            choice /c 1234 /cs /n /m "请选择 : "
            echo.
            if errorlevel 4 Exit
            if errorlevel 3 goto :ID_UserDefined
            if errorlevel 2 goto :ID_Random
            if errorlevel 1 goto :ID_Host
            echo.
            ::===============================================================================================================
            :ID_Host
            echo.
            echo Stop-Service RustDesk > RustDesk_ID_Host.ps1
            echo taskkill /im rustdesk.exe /f >> RustDesk_ID_Host.ps1
            echo $id = Get-Content "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" ^| Select-Object -Index 0 >> RustDesk_ID_Host.ps1
            echo $hostname = hostname >> RustDesk_ID_Host.ps1
            echo Write-Host "当前 RustDesk ID: %rustdesk_id%" >> RustDesk_ID_Host.ps1
            echo $newId = "id = '$hostname'" >> RustDesk_ID_Host.ps1
            echo Write-Host "新的 RustDesk ID: $newId" >> RustDesk_ID_Host.ps1
            echo $fileContent = Get-Content -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" >> RustDesk_ID_Host.ps1
            echo $newContent = $fileContent -replace [regex]::Escape($id), $newId >> RustDesk_ID_Host.ps1
            echo $newContent ^| Set-Content -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" >> RustDesk_ID_Host.ps1
            echo Restart-Service RustDesk >> RustDesk_ID_Host.ps1
            powershell.exe -ExecutionPolicy Bypass -File RustDesk_ID_Host.ps1
            start "" "C:\Program Files\RustDesk\rustdesk.exe" --tray
            goto :done
            ::===============================================================================================================
            :ID_Random
            echo.
            echo Stop-Service RustDesk > RustDesk_ID_Random.ps1
            echo taskkill /im rustdesk.exe /f >> RustDesk_ID_Random.ps1
            echo $randomId = -join ((48..57) ^| Get-Random -Count 9 ^| ForEach-Object {[char]$_}) >> RustDesk_ID_Random.ps1
            echo $id = Get-Content "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" ^| Select-Object -Index 0 >> RustDesk_ID_Random.ps1
            echo Write-Host "当前 RustDesk ID: %rustdesk_id%" >> RustDesk_ID_Random.ps1
            echo $newId = "id = '$randomId'" >> RustDesk_ID_Random.ps1
            echo Write-Host "新的 RustDesk ID: $newId" >> RustDesk_ID_Random.ps1
            echo $fileContent = Get-Content -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" >> RustDesk_ID_Random.ps1
            echo $newContent = $fileContent -replace [regex]::Escape($id), $newId >> RustDesk_ID_Random.ps1
            echo $newContent ^| Set-Content -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" >> RustDesk_ID_Random.ps1
            echo Restart-Service RustDesk >> RustDesk_ID_Random.ps1
            powershell.exe -ExecutionPolicy Bypass -File RustDesk_ID_Random.ps1
            start "" "C:\Program Files\RustDesk\rustdesk.exe" --tray
            goto :done
            ::===============================================================================================================
            :ID_UserDefined
            echo Stop-Service RustDesk > RustDesk_ID_UserDefined.ps1
            echo taskkill /im rustdesk.exe /f >> RustDesk_ID_UserDefined.ps1
            echo $id = Get-Content "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" ^| Select-Object -Index 0 >> RustDesk_ID_UserDefined.ps1
            timeout /t 2 >nul 2>&1
            echo.
            echo $newId = Read-Host "请输入新的 RustDesk ID(至少 6 字符)" >> RustDesk_ID_UserDefined.ps1
            echo Write-Host "当前 RustDesk ID: %rustdesk_id%" >> RustDesk_ID_UserDefined.ps1
            echo $newId = "id = '$newId'" >> RustDesk_ID_UserDefined.ps1
            echo Write-Host "新的 RustDesk ID: $newId" >> RustDesk_ID_UserDefined.ps1
            echo $fileContent = Get-Content -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" >> RustDesk_ID_UserDefined.ps1
            echo $newContent = $fileContent -replace [regex]::Escape($id), $newId >> RustDesk_ID_UserDefined.ps1
            echo $newContent ^| Set-Content -Path "C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk.toml" >> RustDesk_ID_UserDefined.ps1
            echo Restart-Service RustDesk >> RustDesk_ID_UserDefined.ps1
            powershell.exe -ExecutionPolicy Bypass -File RustDesk_ID_UserDefined.ps1
            start "" "C:\Program Files\RustDesk\rustdesk.exe" --tray
            goto :done
            ::===============================================================================================================
            :done
            del RustDesk_ID_Host.ps1 >nul 2>&1
            del RustDesk_ID_Random.ps1 >nul 2>&1
            del RustDesk_ID_UserDefined.ps1 >nul 2>&1
            echo.
            echo 当前任务已经完成。
            echo.
            choice /C:MX /N /M "按 M 键返回主菜单 -- 按 X 键退出: "
            if errorlevel 2 Exit
            if errorlevel 1 goto :Main
            ::===============================================================================================================


            IP属地:广东6楼2024-08-19 15:37
            回复
              我的id服务器不知道突然也用不了了,域名没问题 映射的web服务器也正常,但是设置中继服务器就说连不上,用数据网络,但打开wifi在局域网就可以。


              IP属地:辽宁来自iPhone客户端7楼2024-08-19 18:36
              回复
                你好,显示未安装怎么办。确认已经安装好了
                RustDesk is not installed, install RustDesk first.
                Press any key to exit.


                IP属地:福建8楼2024-11-20 23:14
                回复