"i use in my shop to share the internet to my other computers. is't router or switch? "

You'll want a router.

As to the differences, one does what you ask, the other doesn't.

Bob