I try to not put any feeders closer than 50 feet from a bird house. Depending on the bird species you're wanting to attract to a house you may need more space; or at least on a different side of your house.
You can offer birds a variety of foods such as seeds, suet, fruit, and mealworms. Common bird seeds like sunflower seeds are popular, but different species have varied preferences, so a mix can attract a diverse range of birds. Ensure a clean and safe feeding environment.
Feeders should be a minimum of 25 feet away from the house to deter mice. We had the same problem...
Your options are twofold: Place feeder and birdbaths within three feet of the nearest window so that birds don't hurt themselves upon liftoff; or place them more than 30 feet away so that feeding birds have plenty of space to clear the house.
Hang your bird feeder away from trees, bushes, fences or buildings. Squirrels and other predators may use these to climb or jump onto the bird feeder. If you must hang the bird feeder on a tree, keep it at least six feet from the trunk or the tree limbs.
Visibility : Position the feeder in a spot that is visible from your home, ideally near a window. Shelter : Place the feeder near natural cover, such as shrubs or trees. Distance from Predators : Avoid placing the feeder too close to areas where cats or other predators can easily reach the birds.