There are a number of issues that could cause this problem, two of which Steve and besson3c have mentioned. You don't say what router you have-this could be a very large contributor to the problem. Some consumer routers are, shall we say "less than robust" and they stop properly routing traffic at some point or other. So first, what router do you have (make, model and if you know, how current its firmware is)? And have you tried just restarting your router instead of trashing all your preferences and restarting the computer?