Then why it doesn't respect the paytxfee setting if I'm not connected to that "magic" IP and respects otherwise? Is it hardcoded or what?
That had nothing to do with it. Fees depend on the result of SelectCoins, and SelectCoins uses randomization, so whether you'll have to pay a fee is somewhat random.