How to find my TeamViewer ID on SSH?

When I tried to run the command teamviewer --info I am getting the following output

root@vps [~]# /opt/teamviewer8/tv_bin/TeamViewer --info

 TeamViewer                      8.0.20931 

 teamviewerd status              teamviewerd start/running, process 9584 

TeamViewer ID: not found
Try restarting the TeamViewer daemon (e.g. teamviewer --daemon restart)

but I can't find my TeamViewer ID. Is there any other in Configuration settings where I can find my TeamViewer ID?


Solution 1:

Set your password first:

teamviewer --passwd newPassword

And the run

teamviewer -info

It will show you the TeamViewer ID

Solution 2:

You can inspect the logs :

grep -o "id=[0-9]*" /var/log/teamviewer/TeamViewer8_Logfile.log

Solution 3:

You can use :

teamviewer --info print version, status, id

Solution 4:

Windows (the original question does not set specific operating system, just a example of Linux/Unix shell) solution:

cd %PROGRAMFILES%\TeamViewer\Version7
type TeamViewer7_Logfile.log | more

The ID is reported on the head lines. Tested working on v7.