On Tue, Mar 5, 2013 at 10:16 AM, David Sommerseth < sl+us...@lists.topphemmelig.net> wrote:
> On 05/03/13 19:13, Mahmood Naderan wrote: > > Thank you very much for the replies. > > In my previous try I didn't enter 5901, so I think by default it uses > 5900. > > As I posted earlier, 5900 doesn't work. Instead 5901 works. > > > > I don't know why but is it OK. > > Then you need to look at your Xvnc configuration and see there why it > chose 5901 instead of 5900. It might even be that something else was > running on port 5900 when Xvnc started, so it chose 5901. Anyhow, we > don't have enough info to do any educated guesses why that happens. So > start by looking at config files and log files. For more info, also > consult the man pages. > I may be mistaken, but I believe it uses 5900 + Display number. On a standard box with a local login screen on display :0, the first VNC session will be on display :1. If multiple Xvnc instances are running, those will listen on subsequent displays (and hence ports 5902, 5903, etc). Jeff > > -- > kind regards, > > David Sommerseth > > > > ------------------------------------------------------------------------ > > *From:* David Sommerseth <sl+us...@lists.topphemmelig.net> > > *To:* Mahmood Naderan <nt_mahm...@yahoo.com> > > *Cc:* Eero Volotinen <eero.voloti...@iki.fi>; > > "scientific-linux-users@fnal.gov" <scientific-linux-users@fnal.gov> > > *Sent:* Tuesday, March 5, 2013 9:40 PM > > *Subject:* Re: troubleshooting vnc > > > > On 05/03/13 18:59, Mahmood Naderan wrote: > >> C:\Users\mahmood>telnet IP 5900 > >> Connecting To IP...Could not open connection to the host, on port 59 > >> 00: Connect failed > >> > >> > >> But > >> > >> C:\Users\mahmood>telnet IP 5901 > >> RFB 003.008 > >> status > >> displa > >> > >> Connection to host lost. > >> > > > > You have no problems now ... just run your favourite VNC client on your > > box and connect to IP:1 or IP:5901 > > > > And it should just work. > > > > > > -- > > kind regards, > > > > David Sommerseth > > > >> ------------------------------------------------------------------------ > >> *From:* Eero Volotinen <eero.voloti...@iki.fi > > <mailto:eero.voloti...@iki.fi>> > >> *To:* Mahmood Naderan <nt_mahm...@yahoo.com <mailto: > nt_mahm...@yahoo.com>> > >> *Cc:* scientific-linux-users@fnal.gov > > <mailto:scientific-linux-users@fnal.gov> > >> *Sent:* Tuesday, March 5, 2013 9:06 PM > >> *Subject:* Re: troubleshooting vnc > >> > >>> Using cmd.exe from windows 7, here is the output > >>> C:\Users\mahmood>telnet IP > >>> Connecting To IP...Could not open connection to the host, on port 23 > >>> : Connect failed > >> > >> correct syntax for telnet is : > >> > >> telnet ip.address port-number (for ex telnet 192.168.0.2 5901) > >> > >> -- > >> Eero > >> > >> > > > > > > > -- -------------------------------------------------------------- Jeffrey Anderson | jdander...@lbl.gov Lawrence Berkeley National Laboratory | Office: 50A-5104E | Mailstop 50A-5101 Phone: 510 486-4208 | Fax: 510 486-4204