|To share an internet connection between two computers you need either a router or Internet Connection Sharing enabled on one computer, called the host, and the other computer, called the client, connected to that. |
That means that the host computer will need two Network Interface Cards, one for the Internet and one for the client. Better get a router, a lot simpler and far more reliable.
You cannot share an Internet connection through a hub.