Ciao
the first thing to check is if the Windows XP VM is able to communicate with windows 10. So you should ping the Windows XP VM towards the IP of the windows 10 PC hosting the VM and check the result.
Then how is the network card associated with the windows XP VM configured within VMware Workstation 16.
You should have the following choices:
normally if you use Bridged or NAT you should be able to access the internet.
If you have selected Bridged or NAT and it does not work we must verify that the VirtualNet is using the correct network card of your windows 10 PC (i.e. the one that accesses the internet).
To do this we must use the Virtual Network Editor which if you are using the free version is not installed by default to use it you must follow this guide https://www.serverwatch.com/guides/how-to-fix-a-vmware-player-bridged-network/ do the tests indicated above and let me know the result and eventually check which network card is used in the Bridged configuration