Can't connect to server

So when I make server it wont connect in game?