All links in my site start with localhost?

You should be able to configure the URL that WP uses for the links in the backend, at Settings->General.