If you really do have a hub, and not a router performing Network Address Translation, that connects both computers to your cable modem, and if you are getting separate public IP addresses for the two computers, and if you are trying to enable file and print sharing bound to TCP/IP on your network, then that is totally inappropriate and dangerous.
It sounds as though the WinXP network wizard has been smart enough to enable the Internet Connection Firewall on each of the machines. That is a good thing because (in the scenario I outlined above) that prevents everybody on the planet from having access to your shares.
If you want to do this properly and safely you have several choices, with two of the simplest briefly outlined below:
1. Set up two NICs in Computer A and do Internet Connection Sharing with it so that Computer B gets access to the Internet through Computer A. A and B will be able to share over the "internal network" while having only one public IP assigned to the Web-exposed NIC on Computer A. NetBIOS will be bound to TCP/IP only on the private network NICs, and ICF will be disabled on the two internal network interfaces but enabled on the one world-facing NIC. The hub will site between Computer A and Computer B, not between the computers and the cable modem. (Or you could just use a crossover patch cable.)
2. Set up a router/switch with its WAN port connected to the cable modem. The router will perform Network Address Translation allowing A and B to see each other and share files and printers with NetBIOS bound to TCP/IP with Internet Connection Firewall turned off on both computers. (You can use a more flexible third party software firewall on each if you wish.) Or you can leave ICF turned on, unbind NetBIOS and the client from TCP/IP, install NetBEUI on both computers, and share to your hearts' content without danger of someone on the Web being able to access your shares.
- prosaic