Using computer's wifi capability to get internet connection

The first thing you need to do is to write a program to run on your computer that translates between a serial input and the TCP/IP protocol you need for the internet.
It is not easy and it is not an Arduino problem.