Can that hub act as a DHCP server? If so, setup the clients to automatically pick up an IP address. Otherwise, set the workgroup name for the both computers the same and give both computers static ip addresses and set their subnets.
For example:
computer 1
subnet mask: 255.255.255.0
ip_address: 192.168.0.1