Can use VRDP with localhost, but not IP address

Discussions related to using VirtualBox on Windows hosts.
mrschwarz
Posts: 9
Joined: 8. Feb 2015, 19:07

Can use VRDP with localhost, but not IP address

Post by mrschwarz »

I am running VB on a Windows 8 machine. The guest is also Windows 8. It is set up for VRDP and works fine from the host computer using 'localhost:xxxx' where 'xxxx' is the port set up for VRDP for this guest. I cannot use RDP using the local IP address of the host from either the local machine or another machine on the LAN. I have disabled all firewalls without any change. I can use RDP and Teamvier both to access the guest machine when it's running, but not VRDP. I have installed the extensions on the host and the additions on the guest without improvement.

When I first installed the guest, it worked. Now it doesn't. I am at the end of things to try from my end. Can anyone help me get this working? Thanks in advance.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can use VRDP with localhost, but not IP address

Post by noteirak »

Please post the output of the following commands on the host, running from the VirtualBox install directory for the first one and replace <vmname>:

Code: Select all

vboxmanage showvminfo <vmname> --details

Code: Select all

netstat -anb | find "LISTENING"
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
mrschwarz
Posts: 9
Joined: 8. Feb 2015, 19:07

Re: Can use VRDP with localhost, but not IP address

Post by mrschwarz »

ForForum.txt contains the output of the first command. ForForum1.txt contains the output of the second. Note that even though the 'state' in the info command says that the machine is off, it is actually running. Thanks for your help.
Attachments
forforum.txt
(4.38 KiB) Downloaded 261 times
forforum2.txt
(2.71 KiB) Downloaded 297 times
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can use VRDP with localhost, but not IP address

Post by noteirak »

nothing is listening on IPv4 for port 5001, but is on IPv6, so my guess is something prevents VirtualBox to bind the port. Try configuring the VRDP module to use your NIC IP address, and see if you can connect.
If still not, please provide the relevant VM log file.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
mrschwarz
Posts: 9
Joined: 8. Feb 2015, 19:07

Re: Can use VRDP with localhost, but not IP address

Post by mrschwarz »

Not wanting to seem ignorant, but how do I do that?
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can use VRDP with localhost, but not IP address

Post by noteirak »

From a command line, in the install directory of VirtualBox, replace <vmname> and <ip> by the relevant values:

Code: Select all

vboxmanage modifyvm <vmname> --vrdeaddress <ip>
Then, browse to the directory where your VM is located, then go into Logs, and take the VBox.log, zip it, attach it to this post (don't copy/paste! attach the file itself)
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
mrschwarz
Posts: 9
Joined: 8. Feb 2015, 19:07

Re: Can use VRDP with localhost, but not IP address

Post by mrschwarz »

Here are the logs from today.
Attachments
VBox.log.zip
(21.86 KiB) Downloaded 199 times
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can use VRDP with localhost, but not IP address

Post by noteirak »

No error, it just listen on IPv6.
Could you show the command you've typed in to configure the IP?
Also, please run the following command and give the output (same comments as before) :

Code: Select all

vboxmanage showvminfo <vmname> --details
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
mrschwarz
Posts: 9
Joined: 8. Feb 2015, 19:07

Re: Can use VRDP with localhost, but not IP address

Post by mrschwarz »

i used the wrong ip address. Here is the log with the ip address of the physical nic.
Attachments
VBox.zip
(21.54 KiB) Downloaded 197 times
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can use VRDP with localhost, but not IP address

Post by noteirak »

No improvement
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
mrschwarz
Posts: 9
Joined: 8. Feb 2015, 19:07

Re: Can use VRDP with localhost, but not IP address

Post by mrschwarz »

Here are two files showing information before I started the VM and after it was running. Here is the command I used, frommone of the earlier posts: 'vboxmanage modifyvm win8.1 --vrdeaddress 10.160.64.231'
Attachments
statusrunning.txt
After starting the VM
(5.13 KiB) Downloaded 200 times
status.txt
Before srarting the VM
(4.57 KiB) Downloaded 198 times
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can use VRDP with localhost, but not IP address

Post by noteirak »

and it still doesn't work on IPv4?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
mrschwarz
Posts: 9
Joined: 8. Feb 2015, 19:07

Re: Can use VRDP with localhost, but not IP address

Post by mrschwarz »

Nope.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Can use VRDP with localhost, but not IP address

Post by noteirak »

Baffled to be honest - no reason for it to fail, and nothing in the log states anywhere that it ever failed. your IPv4 seems fine seems you had other processes listening on it...
One possible issue is that VBoxWebSrv is not allowed on the host firewall. Can you add the process and authorize everything on it?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
mrschwarz
Posts: 9
Joined: 8. Feb 2015, 19:07

Re: Can use VRDP with localhost, but not IP address

Post by mrschwarz »

I authorised the process without any change. I then changed the listening port of the host system and changed the listening port of the VM to 3389. While I can connect to the host on this port, I cannot connect to the VM on the same port so I am assuming it's not the port being blocked, but something going on with the VRDP server.

Not sure where to go with this now. Thanks for your help.
Post Reply