With regard to USB support, it's possible with current versions but is still very much beta quality. I only have an automated USB-based client available for the Mac at the present time. Plan is to provide similar items for Windows and (Ubuntu) Linux.
To make it work, you'll need to have "USB Debugging" enabled on your device. It can be found in the settings menu under Application settings->Development->USB Debugging.
The Mac version can be downloaded here: http://android.nextapp.com/download/WebSharingUSB.dmg Just install the app wherever you'd like (e.g. your "Applications" folder) and double-click to start it. Device should be plugged into USB first. An Intel Mac is required, PPCs are not supported.
If you have a Windows or Linux machine, you can still use the USB feature if you're brave and have the Android SDK set-up. Directions for setting up the SDK with support for communicating with devices are available here: Developing on a Device | Android Developers This is not trivial to do unless you're someone who's written Android software before.
To manually start USB sharing, run the following commands in a terminal/DOS window...
Code:
adb shell am start -a nextapp.websharing.action.START_DIRECT -n nextapp.websharing.r1/nextapp.websharing.HomeActivity
adb forward tcp:2112 tcp:2112
...and then start your favorite browser with the URL: http://localhost:2112/?p=auto
If you're on Linux and want to create a quick script to start WebSharing and then start your browser, try this:
Code:
adb shell am start -a nextapp.websharing.action.START_DIRECT -n nextapp.websharing.r1/nextapp.websharing.HomeActivity
adb forward tcp:2112 tcp:2112
sleep 2
xdg-open http://localhost:2112/?p=auto
(If your machine doesn't have xdg-open to launch the default browser...just replace that bit with "firefox" or "google-chrome" or whatever.)
Apologies for it being such a chore on Linux/Windows at the moment. A Windows client is under development with an Microsoft installer package, and I hope to provide .debs for Ubuntu soon as well.