you cant use a hub for this
a hub repeats signals, it will try and use the same ip for both machines in effect, therefore you will get limited or no connectivity
what you need is a router so send out ips
modems cant do this full stop.
you need a router, they arent expensive so just pick up any old one
