Want to control an Arduino over the web

I have a domain forwarded to my routers IP. Then i did some port forwarding on my router.

I've have been testing with some serial prints and it seems like the program runs in the while loop when there is nothing happening on the web server.

Putting a delay in the while loop will cause a longer reaction time from when i push "ON" 'til the LED turns on.

Thanks for reply!

-Rindis