You can't set it manually. the Apple TV gets the information from your router.
Is your Apple TV connecting to a Proxied network, or a Guest Network?
It's possible your router may be blocking the ports the Apple TV needs...
What kind of Router do you have, and what kind of network are you trying to join?