My blog hosted in distant server is still connecting to localhost

All of your content is linked to your localhost install. I would suggest using a plugin like Search & Replace to amend your URLs. Also if you haven’t already, you will need to change the two entries in the wp_options table (where wp_ is the prefix used). They are rows 0 & 37. These are your URLs for moving your site.

The next time you move your site from local to a live site check out the WordPress guide, it’s got lots of handy tips and solutions to problems like this.