Several methods. You can run a MQTT server, Lightweight HTTP Server or even just serial over USB. Literally the world is your oyster. Extra special points if you do HTTP over ethernet