...I have two computers at home...I installed...a switching hub ...
a hub will work for you only if your ISP is setup to assign 2 or more ip addresses for your account/cable modem
most isp co's only assign 1 ip address for access - this is something that you're going to need to find out for sure before we can help you find the most economical, and efficient, solution to your connection issue
my guess is that your isp only assigns 1 ip address per account or cable modem
if you have a hub it won't work, you'll need to get a (low cost) router
if you have a "smart" hub it won't work, you'll need to get a (low cost) router
if you have a multi-port switch then it needs to be setup properly, and it still may not work for you
find out from your isp if they assign just the one ip address or do they offer multiple ip addresses per account/cable modem, and how they are assigned (either dynamic/via DHCP or specified/static).
and let us know what piece of equipment you actually have (manufacturer, model, designation - whatever is written on it, or indicated on the instructions/manual