Forwarding the respective port worked for me e.g. cap run android --forwardPorts 5173:5173
cap run android --forwardPorts 5173:5173