Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: x11vnc change port

  1. #1
    Join Date
    Apr 2008
    Location
    Bulgaria
    Beans
    165
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Question x11vnc change port

    the default port for x11vnc is 5901, but I want to change it to 5566. On the normal VNC this is done by editing /etc/xinetd.d/Xvnc, but how can I do it for x11vnc?
    Angel Angelov

  2. #2
    Join Date
    Dec 2006
    Beans
    810

    Re: x11vnc change port

    Quote Originally Posted by DexterLB View Post
    the default port for x11vnc is 5901, but I want to change it to 5566. On the normal VNC this is done by editing /etc/xinetd.d/Xvnc, but how can I do it for x11vnc?
    I'm not sure what script is starting x11vnc for you (please post here the file location when you learn it), but once you find it (perhaps grep -rl x11vnc /usr /etc) it would be something like:

    Code:
    x11vnc -rfbport 5566 ...

  3. #3
    Join Date
    Apr 2008
    Location
    Bulgaria
    Beans
    165
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: x11vnc change port

    IT WORKS!!!! Thanks a lot

    P. S. How can I mark the thread as solved?
    Angel Angelov

  4. #4
    Join Date
    Dec 2006
    Beans
    810

    Re: x11vnc change port

    Quote Originally Posted by DexterLB View Post
    IT WORKS!!!! Thanks a lot
    What is the full path of the file you had to modify?

  5. #5
    Join Date
    Apr 2008
    Location
    Bulgaria
    Beans
    165
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: x11vnc change port

    I made a shellscript with the following content:
    Code:
    #!/bin/sh
    x11vnc -many -rfbauth ~/.vnc/passwd -rfbport 5566
    and I use it to run x11vnc
    Last edited by DexterLB; June 5th, 2008 at 11:34 AM. Reason: code mistake
    Angel Angelov

  6. #6
    Join Date
    Nov 2008
    Location
    Cornell University
    Beans
    56
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: x11vnc change port

    Does that work with ports below 5900? I tried it with port 80 and it didn't work.

  7. #7
    Join Date
    Dec 2006
    Beans
    810

    Re: x11vnc change port

    Quote Originally Posted by faustism View Post
    Does that work with ports below 5900? I tried it with port 80 and it didn't work.
    You have to be root/sudo to listen on ports less than 1024. Did you run it as an ordinary user?

  8. #8
    Join Date
    Nov 2008
    Location
    Cornell University
    Beans
    56
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: x11vnc change port

    No. I didn't. thank you. that worked. but i have to put "-5820" as the port when i try to connect to port 80.

  9. #9
    Join Date
    Dec 2006
    Beans
    810

    Re: x11vnc change port

    Quote Originally Posted by faustism View Post
    but i have to put "-5820" as the port when i try to connect to port 80.
    You mean in the viewer, right? Some vncviewers (e.g. tightvnc, ssvnc) support the double colon notation:
    Code:
    vncviewer hostname::80

  10. #10
    Join Date
    Oct 2007
    Location
    USA Chicago IL
    Beans
    63
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: x11vnc change port

    Hi i have a machine at the office that I SSH into with Putty & x11vnc. Using x11vnc through terminal like this;

    ssh -t -L 5900:localhost:5900 "WANIPxx.xx.xx.xx" 'x11vnc -localhost -display :1'

    I changed the SSH port from 22 to 3022 for security purposes and my SSH works fine but x11vnc fails, it just won't connect and I already corrected the appropriate ports on my firewall.

    Do you know where I need to change the port for x11vnc to work like before the port change?

    Thanks!

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •