If localhost doesn't work, try using your server's IP. A quick way to find that using Windows is to click Start >> Run... and type CMD, then press enter.
When the command prompt comes up, type ping mysite.com and press enter. Your server's IP address should come up in the ping results.