<---- template headericclude ----->
unable to connect to socket: connectoin refused (111)
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2004
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  2. #2
    Join Date
    Apr 2012
    Location
    Bangalore
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  1. <urlopen error (111, 'Connection refused')>
    By majdi in forum Using Fedora
    Replies: 6
    Last Post: 30th July 2009, 02:46 PM
  2. Replies: 5
    Last Post: 20th June 2007, 06:44 AM
  3. VNC Connection refused (111)
    By cpri in forum Using Fedora
    Replies: 10
    Last Post: 22nd January 2007, 09:24 AM
  4. Connection refused - web GUI program socket fail to connect
    By powah in forum Programming & Packaging
    Replies: 0
    Last Post: 19th April 2006, 06:31 PM
  5. Connection refused (111) rsync error:
    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
  •  
[[template footer(Guest)]]