We have something like this with phone numbers (dial 9 for outside line) and domains but not with IP addresses. The "internet" used to have it with bang paths.
Flat addressing is very good and convenient, but political turmoil easily destroys it, as Russia has already seen and the US is about to see.
(Cryptographic flat addresses don't suffer political problems but have different problems with scalability)
It would solve NAT, too.