Struggling With MSP430 Microcontroller!

For this to work, you would have to use the ESP8266 as a WIFI module, meaning you have to load it with an AT firmware. After that, you "talk" to it via a UART interface using "AT" commands. You can then instruct the ESP8266 to open/initiate TCP/UDP socket to a server somewhere in your local network or the Internet.