WordPress automatically redirecting on localhost

Question:-

I develop my web site on wordpress in my PC (localhost / 127.0.0.1). After completion of site I upload my web project on live server.

Problem is that when I login on my wordpress admin it redirect me on localhost

Solution:-