Read values from webpage to control relay (Ethernet Shield)

What if you are using a wifi module instead of ethernet shield?

Do I just change the mac and specify an ip?