How to specify VNC port number with Mac OS X built-in VNC client?

16

4

Is it possible to specify VNC port number in built-in VNC client of Mac OS X?

I'm trying to connect to Xen VPS machine with Finder's built-in VNC client. I used address like this.

vnc://server:port

But it fails because it uses another port, and Finder's built-in VNC cannot handle port number. As I know it handles the number after colon as display-number, not a port number. Is there a way to specify port number on the VNC client?

Or any workaround for this? (port forwarding??? I have no idea about it...)

Eonil

Posted 2011-02-14T03:15:59.233

Reputation: 4 206

Answers

15

Open a terminal window and type in:

open vnc://server:5900

Or try 5901 if it is on that port number.

Michael Dillon

Posted 2011-02-14T03:15:59.233

Reputation: 899

5

A VNC display number is just another way of specifying a port. Display 0 is, by convention, port 5900; display 1 port 5901 and so on, so if the port your server is using is close to 5900, you can simply subtract 5900 and use that as the display number.

Contrary to what you say, Mac OS X's screen sharing client does accept port numbers with a vnc://server:port url. Either use open from the terminal as Michael Dillon suggests, or select "Connect to Server..." from the Finder's "Go" menu, and type the address in.

Finally if that won't work, it may be that your VNC client and server are incompatible - the Mac OS X VNC server is certainly a bit idiosyncratic. Try downloading a different VNC client such as Chicken of the VNC. If that doesn't work, you'll know that it's not client issues and could be something like a firewall getting in your way.

Scott

Posted 2011-02-14T03:15:59.233

Reputation: 5 323

Right. In my experience, you cannot use the vnc://server:1 convention with the Mac built-in VNC client. You have to use the real port number, which would be vnc://server:5901 – wisbucky – 2019-02-28T01:13:20.133

0

I cant find Chicken of the VNC but found Vine VNC server for OSX and that solved my problems with the built in OS X VNC server.

juancio

Posted 2011-02-14T03:15:59.233

Reputation: 1

1Can you describe the linked content, and how it relates to the question? This will help ensure that this answer remains useful in the event the link becomes invalid. In addition, please be careful posting links in answers of this nature--they could be seen by the community as spam, correctly or otherwise. See the [FAQ#promotion] for more information. – bwDraco – 2012-10-11T04:49:33.977

0

Whether or not you are able to connect to the port you wish may depend on your router configuration. You may need to configure some port forwarding from the NAT settings of your router. E.g. if your router has a public IP address, say 123.123.1.1, but your computer has a local IP address only (e.g. 192.168.x.x or similar, depending on your ISP) you need to forward port 5900 of your router to port 5900 of your computer so that any incoming request on port 5900 of your router is forwarded onto port 5900 of your computer. How to do this depends on your router and internet configuration, but look for some advanced setting under the NAT configuration. I just did it for me, successfully. Both using open vnc://server:port from terminal or Finder > Connect to server > vnc://server:port work fine.

armando.sano

Posted 2011-02-14T03:15:59.233

Reputation: 101