-
13th August 2013, 05:04 AM
#1
unable to connect to socket: connectoin refused (111)
The system is fc19 ungraded from fc18. Prior to the upgrade vncserver worked and supported vncviewer from remote hosts. After the upgrade attempts to access vncserver result in:
unable to connect to socket: connectoin refused (111)
nmap -sS 'server' shows
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
111/tcp open rpcbind
443/tcp open https
3306/tcp open mysql
5901/tcp open vnc-1
6001/tcp open X11:1
The port that should be open is 5902. How can port 5902 be opened up for server.
/etc/sysconfig/config-system-firewall
Configuration file for 'server' system-config-firewall clearly shows 5902. However 5902 is not making it to be enabled.
--enabled
--trust=em2
--masq=em2
--port=5902:tcp
--service=imaps
--service=ipp-client
--service=ipp
--service=nfs
--service=pop3s
--service=samba-client
--service=https
--service=ssh
Thanks, Dan
-
21st November 2013, 07:00 AM
#2
Re: unable to connect to socket: connectoin refused (111)
Please follow below steps (RHE/fedora/centos)
After rpm vnc-server installed
[root@xxx ~]# vi /etc/sysconfig/vncservers
####Set as '(diplay number)user name)' like follwing
VNCSERVERS="2:root"
######Remove '-localhost' like below and set any screen resolution you like
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp"
Save and exit
Go to root's
[root@xxx ~]# vncpasswd root
Password:
Verify:
[root@xxx ~]#
[root@xxx ~]# vi /root/.vnc/xstartup
#twm & # at the bottom: make it comment
exec gnome-session & # run Ghome
Save and exit
[root@xxx ~]# /etc/init.d/vncserver restart
Shutting down VNC server: 2:root [ OK ]
Starting VNC server: 2:root
New 'xxx:2 (root)' desktop is xxx:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/xxx:2.log
[ OK ]
[root@xxx ~]#
Open your refelectionX application on your desktop before run VCNviewer
Use xxx:2 in VNCviewer at VNC server
Similar Threads
-
By majdi in forum Using Fedora
Replies: 6
Last Post: 30th July 2009, 02:46 PM
-
By stuckz in forum Using Fedora
Replies: 5
Last Post: 20th June 2007, 06:44 AM
-
By cpri in forum Using Fedora
Replies: 10
Last Post: 22nd January 2007, 09:24 AM
-
By powah in forum Programming & Packaging
Replies: 0
Last Post: 19th April 2006, 06:31 PM
-
By panama in forum Servers & Networking
Replies: 3
Last Post: 8th April 2005, 11:19 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
[[template footer(Guest)]]