       </source>
       <rom bar="off"/>
     </hostdev>
-    <redirdev bus="usb" type="tcp">
-      <source mode="connect" host="localhost" service="4000"/>
+    <redirdev bus="usb" type="spicevmc">
+      <source mode="connect" host="example.com" service="12345"/>
       <protocol type="raw"/>
     </redirdev>
     <watchdog model="ib700" action="poweroff"/>

Domain 'test-for-virtxml' defined successfully.
Changes will take effect after the domain is fully powered off.