VirtualBox

Opened 15 years ago

Closed 14 years ago

#5227 closed defect (fixed)

VRDP can't bind to localhost on OSX Snow Leopard -> fixed in SVN

Reported by: Jinn Koriech Owned by:
Component: RDP Version: VirtualBox 3.0.8
Keywords: rdp vrdp VBoxHeadless headless Cc:
Guest type: Linux Host type: Mac OS X

Description

Running a guest machine on OSX with RDP listening on localhost doesn't work.

RDP is able to bind to *:port, but not to 127.0.0.1:port.

To reproduce:

  1. Start a VM from the command line
    $ /Applications/VirtualBox.app/Contents/MacOS/VBoxManage showvminfo gentoo | grep -i rdp
    VRDP:            enabled (Address 127.0.0.1, Port 3390, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
    VRDP Connection:    not active
    
    $ /Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless --startvm gentoo
    
  2. Relevant lines from the log file are:
    00:00:00.320 VRDP: TCP server failed to bind to a port: 3390 []
    00:00:00.320 VRDP: TCP server closed.
    00:00:00.320 VRDP: Failed to start VRDP-IN thread, rc = VERR_NET_ADDRESS_IN_USE
    00:00:00.325 Warning: failed to launch VRDP server (VERR_NET_ADDRESS_IN_USE): 'VRDP server port 3390 is already in use'
    
  3. Update the vm config to bind to any interface and restart the vm and it works.
    $ /Applications/VirtualBox.app/Contents/MacOS/VBoxManage modifyvm gentoo --vrdpaddress 0.0.0.0
    $ /Applications/VirtualBox.app/Contents/MacOS/VBoxManage showvminfo gentoo | grep -i rdp
    VRDP:            enabled (Address 0.0.0.0, Port 3390, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
    
    $ /Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless --startvm gentoo
    
  4. Relevant line from logs now show that RDP is working
    00:00:00.229 VRDP: TCP server listening on port 3390.
    
  5. And netstat confirms this, where previously there was nothing.
    $ netstat -anfinet | grep 3390
    tcp4       0      0  *.3390                 *.*                    LISTEN
    

Attachments (1)

VBox.log.1 (54.1 KB ) - added by Jinn Koriech 15 years ago.
VBox.log from which notes in the description were taken.

Download all attachments as: .zip

Change History (3)

by Jinn Koriech, 15 years ago

Attachment: VBox.log.1 added

VBox.log from which notes in the description were taken.

comment:1 by Christian Pötzsch, 14 years ago

Summary: VRDP can't bind to localhost on OSX Snow LeopardVRDP can't bind to localhost on OSX Snow Leopard -> fixed in SVN

Fixed in the next release.

comment:2 by Frank Mehnert, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in 3.1.8

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use