20

Is it possible to know the (public) IP address of a computer where TeamViewer is ready for a remote control session - without connecting to the computer?

Otiel
  • 1,790

4 Answers4

29

Prior to TeamViewer v12, it was possible to read the partner IP from the log files without connecting, but it's not possible anymore. Since v12, you can still see the IP address in the log, but only after a successful connection (which is not that useful, since you'd have many ways to get the public IP address once you're connected).

For TeamViewer v12 → v13...

You need to make a successful connection, then read the logs:

  • Open TeamViewer
  • Fill in the partner ID, and click Connect

    screenshot 1

  • Fill in the password, and click Log On

    screenshot 2

  • You can now close the TeamViewer connection.

  • Back on the main window, click Extra >> Open log files... in order to access the TeamViewer logs

    screenshot 3

  • Open the TeamViewer12_Logfile.log file (located by default in C:\Program Files (x86)\TeamViewer) (replace 12 with your version number). The log folder can be accessed from the main window by clicking Extra >> Open log files...

  • In the file, search from the bottom for the first line where it is written:

     UDP: punch ignored a=xxx.xxx.xxx.xxx:yyyyy
    
    • a=xxx.xxx.xxx.xxx → That's the IP address you're looking for!
    • yyyyy is the UDP port used for the connection.

For TeamViewer v7 → v11

You can discover the IP address by faking a connection (partner TeamViewer must be up and running) then read the logs:

  • Open TeamViewer
  • Fill in the partner ID, and click Connect to partner

    Screenshot

  • Click Cancel

    Screenshot 2

  • Back on the main window, click Extra >> Open log files... in order to access the TeamViewer logs

    Screenshot 3

  • Open (with Notepad or whatever) the TeamViewer7_Logfile.log file (located by default in C:\Program Files\TeamViewer\Version7) (replace 7 with your version number)

  • In the file, search from the bottom for the first line where it is written:

     CTXX GWT.CmdUDPPing.PunchReceived, a=xxx.xxx.xxx.xxx, p=yyyyy
    
    • a=xxx.xxx.xxx.xxx → That's the IP address you're looking for!
    • yyyyy is the UDP port used for the connection.
Otiel
  • 1,790
2

The text to search for in the log file is the following (IP address is replaced by xxx.xxx.xxx.xxx):

UDP: punch received a=xxx.xxx.xxx.xxx:49518: (*)

Otiel
  • 1,790
pascal
  • 31
0

This method is still working...

...you just have to open the TeamViewerXX_Logfile.log (where XX stands for the version number) and search from the bottom up (press CTRL+F and tick the from the bottom radio button). Search for a= and there you go:

you'll find the IP-Address of the remote computer and and the UDP Port Teamviewer connects to.

simlev
  • 3,912
-1

In TV12 (and probably other newer versions) you have to look for the "punch ignored a=" phrase. There is the only one which gives you unmasked IP address of the remote host.