For future reference learn about bootable clones of your hard drive. If you do, problems like you have can be easily resolved. Time Machine is not perfect for backups.
Read this user tip by ds store for an education.
well now we have lost all.
we have started again but cant seem to get onto the time machine to do a back up, or mirgate
it comes up with a code saying it is wrong ip.
when looking on line it is saying it is in safe mode.
the time machine is working with the other mac.
any ideas there?
You are not booted in safe mode unless you explicitly boot with the shift key pressed after the boot chime.
I don't use TM so I cannot comment on its problems. As the previous poster said, bootable "clones" are more useful, i.e., "cloning" your volumes with a backup program like Carbon Copy Cloner or Super Duper. But this doesn't help your immediate problem.
You may need to create a data recovery drive here to boot and get data off your main computer.
You can try the steps listed here, should arm you well in attempting to fix your non-booting machine.
Your the second person I've seen today with the same TM IP issue, I have no fixes other than if you get into your machine to set the IP back to what it was by guessing it's approximate from the IP's othe other machines on the local area network.
for instance if there is a 10.0.1.3 and a 10.0.1.1, good chance your machine is 10.0.1.2 or 10.0.1.4
I've never heard of TM using IP addreses, it's a strange, overcomplicated and unrelaible backup system IMO.
Straight up clone of each machine, simple, elegant and best of all bootable just like your real drive.