Programing arduino with wifi

Hi

Is there any way to program the arduino from wifi.

Lets say i am in calif. and my arduino is in NJ can i program it through the internet? is there such a thing?

I have heard about the xbee module is that over wifi? or does it have a range of 50ft or so? Is there any thing else that is cheaper or can be programmed over wifi?

The XBee chips do not work with Wifi. Atleast not the popular series 1 (aka 802.15.4 or OEM RF Modules). Maybe some Zigbee models from Digi:

http://www.digi.com/products/wireless-w … rfmodules/

But they obviously do not have the range to cross the US continent. If you want a Wifi solution I suggest watching the latest Friday New Product post video. It mentions this: http://www.sparkfun.com/products/10822

But then you still need a way to get your PC in California to communicate with devices in your NJ (New Jersey?) network, in other words across the internet. You probably have a router in between blocking internet traffic that didn’t originate from or was requested by itself. This blocking is good, but in order for your legitimate packets from California to enter your NJ LAN you need a pc/server/advanced router (always on) in NJ to provide a VPN (virtual private network) tunnel into your NJ network.

http://en.wikipedia.org/wiki/Virtual_private_network

This makes your pc in California think it is part of the NJ network, as if it was physically there. File/Printer-sharing works as well. Just a tad slower than in your LAN because of the tunneling overhead and long internet distance.