You have to create a host entry for your development server and use this inside WordPress instead of localhost.
Example
Add the following line to your hosts file and reload your dns cache or reboot the system.
127.0.0.1 wp.local
Hostfile locations
For UNIX/Mac: /etc/hosts
For Windows: %SystemRoot%\system32\drivers\etc\hosts
WordPress modification
Use a DB tool (e.g. phpMyAdmin, Sequel Pro) to change the options siteurl and home inside the wp_options table. Replace localhost with the new name wp.local defined in the hosts file.
If you have existing content in WordPress, you also have to search&replace all hardcoded links (e.g. site/article links or pictures).
Apache modification
You will need to add that hostname to your Apache's vhost configuration as well (except it's setup as default site).