quamotion / remoteviewing

RemoteViewing is a .NET-native VNC client and server library.
Other
260 stars 79 forks source link

Use the NoVNC example #28

Open fredericoregateiro opened 6 years ago

fredericoregateiro commented 6 years ago

Hello, How can I use the NoVNC example? Where are the scripts files located? When I run the example project i get these errors: 404 (Not Found) on util.js file 404 (Not Found) on base.css file

Thanks, Frederico

qmfrederik commented 6 years ago

The noVNC example uses the noVNC bower package. You'll first need to restore the bower packages before your can run the noVNC sample project.

This should be done automatically if you're on Visual Studio 2017: https://docs.microsoft.com/en-us/aspnet/core/client-side/bower.

If not, see https://bower.io/ for more information on how to use bower.

Let me know if you get it working!

fredericoregateiro commented 6 years ago

I think the project doesn't have a bower.json file, but i will try to add one The package is "no-vnc"?

qmfrederik commented 6 years ago

That's odd. Yes, the package is "no-vnc", version v0.6.2

fredericoregateiro commented 6 years ago

I've just added a bower.json and add a reference to the "no-vnc" and it's working fine. If we browse were https://github.com/qmfrederik/remoteviewing/tree/master/RemoteViewing.NoVncExample there is no bower file.

Now the sample uses a DummyFramebufferSource, is there a IVncFramebufferSource implementation we can use to get a fully working sample?

I'm really new to the vnc world, so i'm trying to understand if the noVnc can connect to a server that's not on the same lan? Like if i'm on the office, can i connect to my home PC?

Thanks

qmfrederik commented 6 years ago

Have a look at the ServerExample, that one uses a frame buffer source that would mirror your primary screen (at the cost of a dependency on System.Windows.Forms:

session.SetFramebufferSource(new VncScreenFramebufferSource("Hello World", Screen.PrimaryScreen));

Yes, noVNC can connect to a remote VNC server. It sounds like in your case, you may want to install a standard VNC server on your home PC, and use noVNC to connect to it. You're probably better off using one of the standard VNC servers out there instead of RemoteViewing (which has a fairly basic VNC implementation).

zhizhon commented 6 years ago

I can't find the sample to implement novnc connect a remote VNC server,and how to implement Reverse connection?