I'm using wireless router for internet access and local wireless network.
When I ping from Ubuntu to Windows XP over a wireless LAN, it works using either IP or hostname of the Windows device.
But when I ping from the same Windows device to Ubuntu it doesn't work at all (neither IP nor hostname). But it works (ping to IP but not hostname) only when there is an Remote Desktop connection from Ubuntu to Windows.
My /etc/hosts looks like:
127.0.0.1 localhost 192.168.0.2 ubuntuhostname
I have samba installed and running, but firewall is definitely inactive.
Edit: In the router settings, I reserved the same IP address for Ubuntu device in addition to explicitly defining its hostname (and MAC address).