By using the tethering function, you can connect your computer (Mac or Windows), tablet (iPad, etc.), game console, etc. to the Internet via your iPhone.

Tethering settings - Internet sharing

Mac

Windows

iPad