Menu

#13 VNC Connection Failed" Failed to connect to localhost/127.0.0.1 (port 5900), connection failed: ECONNREFUSED

open
nobody
None
2017-02-20
2016-09-04
No

Hi, guys
When I try to connect through VNC, tablet displays the following error: "VNC Connection Failed" Failed to connect to localhost/127.0.0.1 (port 5900), connection failed: ECONNREFUSED.
I have tried port 5901, etc.. I also have tried two distributions: debian small v4 and ubuntu 13.04 small... no matter what I do, always the same error.. I think the vncserver is not listening but I can't find out why because I don't know where are placed the scripts which should run the service.. How can I solve this problem
Thanks in advances

Discussion

  • Javier Velasco

    Javier Velasco - 2016-09-07

    Hi guys.. I have a partial solution to this problem..

    • First of all, please, be assured that you have enabled the USB debugging option on your tablet.

    • Second, I have found that the image tested (kalilinux) was loaded correctly with a 'ps ax' in the console, so the problem was that the 'vncserver' process which has to listen to our android vncclient was not loaded. I fixed the problem launching the following command only in the console which launches the app (you may create a script sh or include this in the script init.sh: vncserver :0 -depth 24 -geometry 1280x768 -dpi 75. After running this command you'll see the X server is running

    • Third, what about password in Kali image for androidvnc? The app tells us that is 'debian', but it is not correct.. I had to guess that the password had to do with the user in the image.. In the case of Kali.img if we do a 'cat /etc/passwd' we can see that there is a 'kalilinux' user.. that is the password.. so, you should open the androidvnc app and write down as nickname: localhost, as password: kalilinux as port:5900 .. and finally you'll see the Xdesktop of Kali image loaded.. If you are doing the test in a tablet maybe you may consider to purchase a OTG-2 usb to connect your mouse and your keyboard and convert your tablet in a PC with linux

    Regards,
    Javier

     

    Last edit: Javier Velasco 2016-09-07
    • mahesh talapala

      mahesh talapala - 2017-01-17

      (http:/Sir please tell me how to do the second one where to type the command....i got the same error ...but everything is alright in linux deploy...i dont know why i got this error

       

      Last edit: mahesh talapala 2017-01-17
  • mahesh talapala

    mahesh talapala - 2017-01-17

    How do i do the second one ..i dont have any idea... Where to type that command..??

     
  • Javier Velasco

    Javier Velasco - 2017-02-20

    Hi ma
    Malesh,
    If I remember well, you have to edit the script which launches the environment (Make a copy and test it until you may see the console in your tablet, change the process until you see it), so you'll have the console to type the wcommand described in the previous message,
    I hope it helps,
    Regards

     
  • Javier Velasco

    Javier Velasco - 2017-02-20

    Also I have to say that the console seems not to get th What you write, but it does, so make sure you can see the console and write the command and it should work,

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.