Hogwarts Legacy is a single-player game that is meant to be played offline. That means the game doesn’t support any type of multiplayer interactions, and you don’t need the internet to run the game. That said, you will need the internet to download the game if you purchase it online or install the gameplay patches if you’ve purchased a physical copy.