If your database is on VPS (server), you need to connnect with this computer, not with VM (local machine)!
SqlConnection("Data Source=VPS;Initial Catalog=Ranker;Integrated Security=True;Pooling=False");
As Was Aday wrote, try to use ip, instead of server name.