Get IP Address from TeamViewer without connecting

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.