It's not letting me host custom games

I was going to host a custom game but it said I don’t have Xbox live it’s like this on every Halo game I play.