LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-30-2008, 12:29 AM   #1
vikram8jp
LQ Newbie
 
Registered: Oct 2008
Location: Tokyo
Distribution: CentOS
Posts: 27

Rep: Reputation: 15
Question Problem in accessing service on VNC


Hello all,

I just setup a Java development environment on my CentOS machine. I created a VNC account and am able to connect to it from a client.

The thing is I developed a sample application in my VNC account and am accessing it in firefox on VNC like

Code:
http://localhost:9998/projects/sample.jsp
now how should I access this application from my Windows firefox. I tried

Code:
http://192.158.1.12:9998/projects/sample.jsp
and it failed to connect. I guess I am missing something in latter URL.

Can somebody help me out?
 
Old 10-30-2008, 12:35 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What's that got to do with the VNC in the title?

I would imagine that port 9998 is closed by the CentOS firewall. Try opening that first.
 
Old 10-30-2008, 12:55 AM   #3
vikram8jp
LQ Newbie
 
Registered: Oct 2008
Location: Tokyo
Distribution: CentOS
Posts: 27

Original Poster
Rep: Reputation: 15
Thumbs up

Hye billy,

Yes it does seem confusing. Let me shed some light on the reason I did so...

Scenario
------------------------------
I have two VNC accounts A(192.158.12:1) and B(192.158.1.12:2). Now I am using the same link on both accounts to run the application. Till here its fine.

Question
------------------------------
How does the Windows figure out, which application to open? A or B? port :1 or :2? That is why I got confused.

Oh and that worked like a jolly. Thanks. Will surely check this setting before posting from now on.

Quote:
Originally Posted by billymayday View Post
What's that got to do with the VNC in the title?

I would imagine that port 9998 is closed by the CentOS firewall. Try opening that first.
 
Old 10-30-2008, 01:23 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What's a VNC account, and what does the notation 195.158.1.12:1 mean?
 
Old 10-30-2008, 01:34 AM   #5
vikram8jp
LQ Newbie
 
Registered: Oct 2008
Location: Tokyo
Distribution: CentOS
Posts: 27

Original Poster
Rep: Reputation: 15
VNC account means i created a VNC server on my Linux machine. Then, I created 2 user accounts, and did the setting in vncserver service so that they can be accessed using a VNC client. On the VNC client, I type this hostname to connect remotely to my Linux user account. :1 means that it will use port no. 5901 by default on the Linux machine.

Code:
192.158.1.12:1
Quote:
Originally Posted by billymayday View Post
What's a VNC account, and what does the notation 195.158.1.12:1 mean?
 
Old 10-30-2008, 03:59 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
That's what I'd assumed initially, but if you are connecting to the web server through http, I couln't work out where it fitted (and still can't).

if you are actually using VNC from windows, you tell the client which distplat (1 or 2) to use, but again, I don't see how this ties in with firefox (from Windows)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup a VNC listening service BallsOfSteel Linux - Networking 9 04-27-2008 06:24 PM
Accessing vnc across the internet Virtuality Linux - Networking 6 06-05-2007 01:17 AM
Help starting VNC service hongman Linux - Software 2 02-21-2005 03:58 PM
Why Are The Icons Different When Accessing Via VNC? Richard Huelbig Fedora 6 12-03-2004 10:02 AM
SuSE 9.0, vnc not starting as service pnoronen Linux - Networking 3 02-02-2004 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration