Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 21957
  • Last Modified:

Anyone know what port number VNC uses?

I want to be able to connect to my pc from work, but need to know what port # to open.

Thank you
0
MrBean
Asked:
MrBean
1 Solution
 
sirbountyCommented:
By default, a VNC server will listen for connections from a VNC viewer on TCP port "5900+N", where N is the "Display Number" (usually just zero). So a VNC server setup for Display-0 will listen on TCP-5900, Display-1 is TCP-5901, etc.

Additionally, the VNC server will listen for connections from a web-browser on TCP port "5800+N", where N is as above. If you point a web-browser to this port, the VNC server will automatically provide a Java VNC viewer that runs right in your web-browser. This Java Viewer will then exchange data with the VNC Server on the same ports a normal VNC Viewer would use: "5900+N".

Lastly, if you start a "server-initiated connection" to a Listen-mode Viewer (this is a pretty advanced mode), the connection will be to TCP port "5500+N" on the Viewer.
ref: http://faq.gotomyvnc.com/fom-serve/cache/52.html
0
 
MrBeanAuthor Commented:
5900 sound right?
0
 
MrBeanAuthor Commented:
sirbounty, I thought by default the display should be 0, so I should use 5900 right?
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
infotraderCommented:
sirbouty is right.  5900 is correct answer most of the time, unless you change it or use multiple displays.

- info
0
 
sirbountyCommented:
Sorry for the delay there - yes, if it's set with defaults, 5900 is your port #.
Thanx infotrader. :D
0
 
shoobinCommented:
0
 
ManpreetbrCommented:
yes it use 5900 .
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now