Does anyone know exactly where the browser gets the IP address from so it can be intercepted and changed to a new address before the server gets it?

Im designing an IP stealth program.

Reply if you have the low-level experience with this.