if it automatically allocates the ip address then the probability is that when u restart windows itself u will have a different ip..............
so when u switch the 2 it allocates a different address..........
or maybe it considers linux as some different machine....