In Animal Crossing: Wild World, you cannot simply walk to another town, but you can visit other players' towns.
To do it, go to the Town Gate and talk to Copper, the guard. From there you can open your town to visitors or head out to a friend's town by using their friend code. It is the intended way to explore beyond your own village.