Generally you should only configure WP for localhost if you have physical possession of the computer/server. You cannot access localhost of a remote computer. Well there are tricks that this is beyond the scope of this discussion.
Edited to add To install WP on localhost, after installing the WP files, go to:
http://localhost/
or if you installed WP in a sub-directory:
http://localhost/wordpress