People who are gatekeeping their friend groups

When I travel solo I prefer to stay in hostels because otherwise I would feel very lonely. Often I see that there are 1 or 2 popular guys who take the lead and planning to go out to a bar or club, but seem to only invite other popular guys and all the women. How would you deal with those guys who gatekeeper, because I don't want to ask permission if it would be okay to join the group because that would give him too much power over me.