Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Wich ports needed for viewer only using html

Post Reply
löti
8
8
Posts: 8
Joined: 2016-03-02 16:04

Wich ports needed for viewer only using html

Post by löti »

Hello....

I will using the only viewer mode in a webbrowser. In my local network this is working fine. Behind a router with NAT-rule for the "html: port", I have entered in "Admin Properties", only the statusbar is visible, the screen fails. To locking the screen in a browser ist another port in NAT-rules entered?

tnx4info lötix
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Wich ports needed for viewer only using html

Post by Rudi De Vos »

The main and http port
default 5900 +5800

You can set the same port for main and http.
löti
8
8
Posts: 8
Joined: 2016-03-02 16:04

Re: Wich ports needed for viewer only using html

Post by löti »

Hello....

if I use the 590x-port for html access, a failure ar showing. If I'm using 580x-port, the statusbar is visible.

Image

Image
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Wich ports needed for viewer only using html

Post by Rudi De Vos »

Server settings... are you using 1 or 2 ports.
Image
Select ports and set 1 or 2 ports.

Default vnc use 2 ports
1)5800 to download java applet
2)5900 to load the rfb data via the java applet

In some cases you only want one port
Just put the same number for main (rfb) and http(java) in the server properties.
löti
8
8
Posts: 8
Joined: 2016-03-02 16:04

Re: Wich ports needed for viewer only using html

Post by löti »

The two port always open.

Image
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Wich ports needed for viewer only using html

Post by Rudi De Vos »

Then you need to forward the 2 ports, because the java viewer connect to the defined port 5900.
löti
8
8
Posts: 8
Joined: 2016-03-02 16:04

Re: Wich ports needed for viewer only using html

Post by löti »

Yes, I do this so. Two port outside of the router 123456 to 5900 and 123457 to 5800 (excemple) translatet with NAT. The VNC-Port 5900 works fine, the html-Port 5800 shows only the statusbar.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Wich ports needed for viewer only using html

Post by Rudi De Vos »

I don't understand what you are trying todo

server on the internet, viewer internal after a nat router
You don't need to forward anything, your browser just connect to 5800 and 5900 to the server ip.

viewer on the internet, server behind a nat router
You need to forward 2 ports normal you forward port 5900/5800 to the server pc
Viewer connect to the ip of the natrouter with port 5800and 5900
(5800<forward->5800...)

If you want to use port 123456 you need to set port
main: 123456 and http: 123457 in the server properties
forward 123456 to 123456 and 123457 to 123457

The problem is that the server pass the required port to the java applet.(5900)
You download the applet over 123456 and this applet connect to serverip:5900
löti
8
8
Posts: 8
Joined: 2016-03-02 16:04

Re: Wich ports needed for viewer only using html

Post by löti »

If it is a better unterstanding, if has paint the conect. The access in green color works fine, the red one only the statusbar.

Image
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Wich ports needed for viewer only using html

Post by Rudi De Vos »

The problem is

1) You browser connect to 12346 on ip 192.122.122.1 that is forwarded to 192.122.122.100:5800
2) Your browser download the java applet and he connect to 192.122.122.1:5900
The java applet get the used port from the vnc server, that 5900 not 12345

To make it work
vnc port 12345 192.122.122.100:12345<->12345
Now the java applet use port 12345 instead of 5900

There is no way the java applet can know the custom port you used to forward 5900
löti
8
8
Posts: 8
Joined: 2016-03-02 16:04

Re: Wich ports needed for viewer only using html

Post by löti »

Many Thanks! Heureka, it works!! ;-)
löti
8
8
Posts: 8
Joined: 2016-03-02 16:04

Re: Wich ports needed for viewer only using html

Post by löti »

It is possible to hide the status bar?
löti
8
8
Posts: 8
Joined: 2016-03-02 16:04

Re: Wich ports needed for viewer only using html

Post by löti »

Second question: It is possible to set a time limit?
Post Reply