foobar2000 supports "now playing" and scrobbling without needing to edit the hosts file.
You will need to use the third party foo_audioscrobbler.dll component, you can obtain this [http://mp3tag.de/en/fb2k.html here].
This component is not the same as the official Last.fm client of the same name.
In the preferences fill in your libre.fm user/pass and specify 18.104.22.168 (http://turtle.libre.fm) as the proxy. note: As of version 1.4.0 of the plugin's proxy settings have been removed - see below for more information.
To scrobble at the same time, just append your original foo_audioscrobbler.dll with (for example) ''lastfm'' or ''librefm'' to let both coexist in the same folder.
Configure them one by one*: cut-paste foo_audioscrobbler.dll'' out of the components folder. Make a copy, rename the copy to whatever you want and put it in your components folder. Restart foobar (it will ask if you want to keep the original's settings, click yes). Do a configuration for the new .dll (for the other site). Put back your original ''foo_audioscrobbler.dll. When you restart foobar again you should have "handshake successful" for both audioscrobblers. *maybe this is not necessary, but otherwise it can be confusing.
note : From 2009-05-01 (version 1.4.0) foo_audioscrobbler.dll removed the proxy settings, as it now uses foobar2000's settings from 'Preferences > Networking'. If you want to use an older version (for multiple scrobbling with multiple foo_audioscrobbler.dll's this is probably required) you can try ftp- search for the old version of that plugin or try to use [this link](http://www .4shared.com/file/42486203/56284e79/foo_audioscrobbler-1316.html) or this link.
Otherwise go to "Preferences >> Networking", check "Use a proxy server" and enter 22.214.171.124 and scrobbling to Libre.fm should work correctly. If it doesn't then use an older version as described above. If it does work, this method can be used for multiscrobbling if the official Last.fm Client's foo_audioscrobbler.dll plugin is used as well (for submitting to Last.fm). Due to the naming conflict, hence rename the non-Last.fm Client version to something like foo_audioscrobbler_libre.dll.
Just an addendum that might work well for some folks:
1. Set up Foobar player normally with the Last.fm software and plugin.
2. Get foo_audioscrobbler component and rename to foo_audioscrobbler_libre.dll (or whatever name works for you). Place in component folder.
3. Set up Audioscrobbler in Foobar with your Libre.fm log in and the proxy setting, as instructed above.
4. Start playing music. Foobar should now submit your listening history to both services.