Headers included in my code
ESP8266WIFI.h
PubSubClient.h
I also create a WiFiClient object.
From what I've looked at in their source code, WiFiClient has a function built in called remoteIP that seems like it may do what I need. Then there is the getIP function in ESP8266WiFi.h; however, I don't know if this just gets the local IP address of the device, the wifi access point, or the server.
Which of these is the best way to get me where I'm trying to go, or is there a better, easier way to do this?