|If you're trying to connect to a new router or a router, that you have no further informations of, it's always a good idea, to setup the network configuration to get IP and DNS automatically.|
The routers mostly do have DHCP and DNS enabled by default.
If encryption is enabled, you have to configure the encryption type and the encryption key in the wireless connection setup on the pc.
Please send a reply, if you solved the problem !!!