Printer configured on Lan does not print when system connects through wifi

view story

http://askubuntu.com – I am using 12.04 64 bit. I have noticed if I configure (connect) any printer when my machine is connected to Lan (eth port) then it takes print job only if I am connected to Lan. If I try any printing job on wifi, it gets stuck in the print queue. Similarly, when on wifi if I configure the same printer again then it will take print action on wifi, but again if I switch to lan then it will again not print. So for 1 printer I have to configure two times, one on lan and other on wifi. Also I have to make sure while firing print jobs that I should be selecting right printer by checking the way (HowTos)