before copy/pasting the database from your local machine to the production server, you should do a Find & Replace on the domain name.
this way you replace localhost:40952
with the correct domain on every url in the database.
or read the part ‘Moving WordPress to a New Server’ on the codex.