Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VNC Server not accessible from internet (Fedora Core 2)

Status
Not open for further replies.

frummel

Technical User
Jun 21, 2002
91
NL
Dear all,

I have this issue trying to connect to my home server using RealVNC Viewer for Java from the office.
I have set up my network as stated below:

Internet -> Broadband Router -> Server (VNC)

Because at the office most ports are blocked, I created a maybe strange configuration:

Server
IP: 192.168.123.200
Ports open: 5801 (VNC Java) & 5901 (VNC)

Broadband Router:
Incoming port 443 -> Internal port 5801 of 192.168.123.200
Incoming port 444 -> Internal port 5901 of 192.168.123.200

So far so good I'd say (correct me if I'm wrong).

Now the issue:

- I open my browser and open URL (where the xxx's represent my ISP assigned IP).
- I get to see the page titled 'VNC Viewer for Java', and a connection box 'VNC Viewer: Connection Details' appears.
- My ISP assigned IP is already in the box: xxx.xxx.xxx.xxx:1
- When pressing OK, I get an error message 'java.security.AccessControlException: access denied (java.net.SocketPermission xxx.xxx.xxx.xxx:5901 connection, resolve)'

Okay, so I tried again, filling in IP: xxx.xxx.xxx.xxx:444, but get the same error.
And again, when using 192.168.123.200:1 or 192.168.123.200:444.

I have no clue what IP or port to use in the dialog...

Anyway, it works within my LAN, from any computer.

Your help is very, very welcome here.
Thanks in advance!
 
Oh yeah, and using xxx.xxx.xxx.xxx:-5879 to run over port 21 (when configured on the router) it doesn't work either.

I also tried setting IE Java security to low, but this doesn't help either... (WinXPPro SP2 is not installed)
 
It looks like the 5901 port is hard coded somehwre in the VNC Viewer. Somewhere in the java config files you may be able to find this and change it. Also, are you sure 444 is open? I haven't seen that one open on any of my firewalls. You might be better using 80 and 443 which are probably open.
 
OK, thanks for your reply!

So port 443 -> 5801 is obviously working OK...
I get the 'VNC Viewer: Connection Details' dialog.
What do I need to enter there, assuming I forward incoming port 80 to port 5901?

- My LAN IP (192.168.123.200) and what port?
- or, my WAN IP and what port?

Or should I configure VNC to accept VNC Viewer & VNC Java Viewer to accept connections both over 443 -> 5801?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top