arduino and smartphone to turn on home AC

sitzikbs:
but the router ip changes every time it connects and disconnects right?)

Depends on the ISP, but a lot of companies now-a-days will "assign" you an IP address. If it does change, you can use a dynamic DNS service that will give you a web address to use instead of the IP address.