LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Problem in accessing service on VNC (https://www.linuxquestions.org/questions/linux-server-73/problem-in-accessing-service-on-vnc-679936/)

vikram8jp 10-30-2008 12:29 AM

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?

billymayday 10-30-2008 12:35 AM

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.

vikram8jp 10-30-2008 12:55 AM

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 (Post 3325801)
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.


billymayday 10-30-2008 01:23 AM

What's a VNC account, and what does the notation 195.158.1.12:1 mean?

vikram8jp 10-30-2008 01:34 AM

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 (Post 3325822)
What's a VNC account, and what does the notation 195.158.1.12:1 mean?


billymayday 10-30-2008 03:59 AM

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)


All times are GMT -5. The time now is 02:56 PM.