3

Does someone know if it's possible to open a teamviewer session from your website? I got some Teamviewer ID's in a table. It wil be nice that i could open teamviewer on my laptop from my website. Clicking on the Teamviewer ID in the table offcourse..

Suggestions?

Giel Evens
  • 61
  • 1
  • 10
  • The only way would be javascript and if that was possible all our PC's would be the slave of whichever hacker got to us first – RiggsFolly Apr 20 '16 at 15:08
  • I think you get me wrong. I work in a company were we are responsible for over 200 computers. We all got the Teamviewer ID's and there all set to unattended acces. Where we know password from. I made a simple control pannel to structure al the teamviewer ID to the hostname's.. I got a table with al laptop's with their teamviewer ID's. I want when i click on a Teamviewer ID, it opens my teamviewer, to connect with the ID. Like you do in TeamViewer Management Console.. Regards, – Giel Evens Apr 20 '16 at 15:12
  • See http://stackoverflow.com/questions/22092319/how-to-start-teamviewer-session-on-the-basis-of-teamviewerid-in-asp-net/22092823#22092823 – Baris Akar Apr 21 '16 at 09:10
  • you can access teamviewer from the browser, by doing: `window.location = teamviewer8://remotecontrol?connectcc=######` – Shimon Brandsdorfer Jan 19 '17 at 23:59
  • @RiggsFolly This is not a duplicate. Giels Evens is not asking to open any software, just Teamviewer. And if TeamViewer is installed on the computer, you can launch the local client by using proper URL in the browser. I would like to post and answer, so please reevaluate your `Duplicate` tag. – Matthieu Charbonnier Aug 22 '18 at 12:07
  • @m Ok, opened again. – RiggsFolly Aug 22 '18 at 12:16
  • @RiggsFolly Thank you – Matthieu Charbonnier Aug 22 '18 at 12:21
  • @MatthieuCharbonnier Do you have an answer for this question then? – RiggsFolly Aug 22 '18 at 12:32
  • @RiggsFolly Yes, i've just posted it – Matthieu Charbonnier Aug 22 '18 at 12:37

1 Answers1

3

If TeamViewer is installed (and because TeamViewer register a Custom URI Scheme in Windows during the installation), you can simply create a link to make your browser launch the client. Two methods:

Direct link

It use directly the custom URI scheme:

teamviewer8://remotecontrol?connectcc=[TargetComputerId]

Link to the TeamViewer website

It will check if TeamViewer is installed and download the installer if not. If TeamViewer is installed, it will lauch the TeamViewer client.

https://start.teamviewer.com/device/[TargetComputerId]/authorization/password/mode/control

Notes

  • Both of the links can be used in a <a href="" /> tag, or the window.location= JS command.
  • The browser will ask you to confirm the external application opening.
Matthieu Charbonnier
  • 2,794
  • 25
  • 33
  • Is there any way to use `teamviewer8://remotecontrol?connectcc=[TargetComputerId]` with IP address, I'm in VPN connection and there is no internet – Mukhammadsher Dec 19 '20 at 06:38
  • 1
    I found it `tvcontrol1://control?device=[IP or computerId]` – Mukhammadsher Dec 19 '20 at 07:12
  • 1
    BTW, if you just want to start the teamviewer client in the machine which is running the browser you can try this. *teamviewer8://remotecontrol?connectcc=NNN (any number for NNN)* I tried and seems to just open the TeamViewer client – almaruf Jan 27 '22 at 21:39