Monday, April 12, 2010

Using VMWare Workstation Port Forwarding

The scenario was setting up a Windows guest OS (with VMWare) on Ubuntu Server host, and allowing access to any services running on that Windows guest OS. At first, it is complicated to figure out how to do it. But, then, I realize that it is so simple, and only needs simple configuration.

One example is by allowing access to Windows remote desktop service. These are how to do it:

1. configure your Windows guest OS to use NAT for Network Adaptor settings (Used to share the host's IP address)

2. open the configuration file:
# vi /etc/vmware/vmnet8/nat/nat.conf
3. add this line:
[incomingtcp]
# Forward Remote Desktop connections to Windows VM
3389 = 192.168.0.101:3389
 
[incomingudp]
# Forward Remote Desktop connections to Windows VM
3389 = 192.168.0.101:3389
4. restart VMware services
# sudo /etc/init.d/vmware restart
Then you can try to access remote desktop service on your Windows guest OS.

2 comments:

  1. Jimmy Agung GunawanJune 11, 2010 at 9:58 AM

    Jimmy Agung Gunawan
    aku maen ini thn lalu.. gampang.. buka remote service.. langsung tembak port 3389 nya host aja.. coba netstat -antp aja hostnya ntar kan kliatan mapping port nya..

    ReplyDelete
  2. Jimmy Agung GunawanJune 11, 2010 at 9:58 AM

    Jimmy Agung Gunawan
    ga erlu port forwarding, mlh nanti lupa... btw client nya vmware aku pk winXP sp 3..16kbps masi bisa jalan lumayan lho! mungkin kl trigger vnc lebih enteng lg, keburu cabut dr kantor lama kurang explore..

    ReplyDelete

Hi, for all of those who already put comments on my blog post, thanks.. really appreciate it. And for those who have not, just put your comments here :)