How Network Address Translation Works

router(external IP address) work as NAT

-PC(internal IP address)
-PC

NAT translates internal one into external one.