Sounds like your router went south, as they sometimes do, but go through the steps first.
- Check your cables to make sure they're connected snugly. Reinstall your wireless adapter card's drivers. Disable your XP firewall on your PC if it's set; you don't need it with a router. See if that clears up the problem.
- Connect directly to the router via an Ethernet port and pull up its web configuration screen. You'll need the userid and password for this. See if your router is getting an IP address from your ISP. If not, check the cable between the router and modem to make sure it's connected properly then re-run the Setup Wizard.
If you can't connect to the router's web site check your PC's TCP/IP settings to make sure you're properly configured ("assign IP Address automatically" and "Use DHCP server for WINS resolution") then press the router's reset button if you still can't connect. If you still can't the router has probably gone bad; return it for a replacement and try again.
- Once you're able to connect directly to the router make sure that the DHCP server is enabled and the Wireless adapter is turned on. If you've enabled encryption clear it for the moment; you can set it later. Note the SSID (you should change this from the default to something like "MATILDA1" or the like), channel, and the MODE setting.
- Disconnect your PC from the ethernet connection, go into Hardware Configuration, and disable the Ethernet network adapter. Not the wireless adapter; you'll need that. Sometimes the PC gets confused about which adapter it should use to connect and unless you're going to go Ethernet again you don't need the Ethernet adapter enabled. If you ever do it's easy enough to re-enable it.
- Run the wireless setup wizard and input the SSID, channel, and mode you're using for this connection. The wizard should display the connection, pick this and set "Automatically reconnect to this network when in range".
- Now go into the router's setup screen and enable encryption. If you're using WPA encryption enter a passcode; if you're using WEP *directly enter the 16- or 24-hexdecimal character encryption key you want to use*. There are websites that will automatically generate a random key for you or you can work one out for yourself. Reboot the router and after it's rebooted rerun the wireless setup wizard and input the encryption key (WEP) or passcode (WPA) you selected for this connection.
The WEP standard was a little squirrelly about its passcode implementation: If your router and wireless network card are by different manufacturers the same WEP passcode may not generate the same encryption key. WPA shouldn't have this problem.