Your virtual network card is most likely set to NAT (the ip address of the virtual machine is hidden behind the address of your physical machine). You will see something like this in your config file:
ethernet0.connectionType = "nat"
This can be changed by using:
ethernet0.connectionType = "bridged"