Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-05-2007, 05:34 AM   #1
Registered: Jan 2006
Location: Ankara - Turkey
Distribution: Arch Linux
Posts: 39

Rep: Reputation: 15
Unhappy Trying to connect to a VirtualBox Windows guest through RDP

Hi all,

I have an absurd problem at least according me
I have a laptop running Ubuntu Feisty Fawn, and I installed VirtualBox on it to run windows Xp pro. I setup the virtual machine to use host networking so i use the following script to connect Windows to the local network.
# Set up variables here: 
DESC="Virtualbox IP tunnel" 
VBOXUSER=alp # this should be your username, can use 'root' if you want it for everyone 
TUNDEVICE=tap1 # Arbitrary, but must match device used in virtualbox network device setting 
LANDEVICE=eth1 # Adjust to match your WiFi device - may be ath0 etc. 
IPADDR= # pick something from an unused subnet 

case "$1" in 
	echo -n "Starting $DESC: " 
	chown root:vboxusers /dev/net/tun 
	tunctl -t $TUNDEVICE -u $VBOXUSER 
	ip link set $TUNDEVICE up 
	ip addr add $IPADDR dev $TUNDEVICE 
	iptables -t nat -P POSTROUTING DROP 
	echo 1 > /proc/sys/net/ipv4/ip_forward 
	echo 1 > /proc/sys/net/ipv4/conf/$TUNDEVICE/proxy_arp 
	echo -n "Stopping $DESC: " 
	iptables --table nat -F 
	ip link set $TUNDEVICE down 
	echo "Usage: $N start|stop" >&2 
	exit 1 
exit 0
But of course that is not enough, I assigned a static ip to Windows which is "" .
And now I am able to connect to internet and can access to other computers on LAN in Windows. But the problem is I can NOT access Windows from other computers and i can not ping "". It says:
ping: sendmsg: Operation not permitted
So I am not able to connect to Windows through rdp with the following command, after waiting for some it ends up with connection timed out!
alp@alp-laptop:~/Desktop$ rdesktop -rsound:remote -A -s "c:\seamlessrdp\seamlessrdpshell.exe C:\Shell\WinShellEx\WinShellEx.exe" -c "c:\seamlessrdp" -u "remoteUser" -p password -N
Autoselected keyboard map en-us
ERROR: connect: Connection timed out
I also tried to connect using rdesktop but it doesn't work either!
But I can ping from other computers...
So Can anyone help me?... I am desperate...
Old 04-03-2010, 03:45 PM   #2
LQ Newbie
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Late but...

This may be a bit late on the reply, but I figure it might help someone in the future.

I was able to get RDP connected through the host by a setting on Virtualbox.

First shut down the windows XP client
Open the configurations for that client
Select the networking option
change from NAT to bridged adapter

That's it. I can remote in through the ip address assigned to the XP virtual box.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access windows drive from virtualbox cooler123321 Linux - General 1 07-06-2007 07:56 AM
windows rdp and telnet ilnli General 8 11-17-2006 07:02 AM
KDE 3.2 and Windows Remote Desktop (RDP) sorrodos Linux - Software 7 11-20-2005 12:01 PM
RDP - Linux to Windows vonedaddy Linux - Networking 1 10-19-2004 09:14 AM
Can't connect to Guest OS grifta Linux - Networking 1 07-26-2003 10:09 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration