Arduino auto-connect to the internet

I want to control some digital outputs of Arduino trough the Internet with a smartphone or a laptop etc... but this arduino may be in a school or in a house of a friend, etc... and i couldn't program the router of school for example.

So i need to do that we are talking about right?

But i'm a bit lost :confused:

To start i'm thinking to create a website with login, and inside will be some buttons to send data to the arduino.

I need to buy a vps to be my web server?

After i will program my arduino to connect to a web server periodically.

I'm thinking right?

help :slight_smile: