This code can be loaded into an ESP8266 module to allow it to forward a serial connection from a device to a socket on a WiFi network.
It is very rough.
- Download and install the ESP8266 enabled version of the Arduino "IDE"
- Change the config in the main file to match your network and serial device
- Compile
- Load the code into your module
- Profit