follow this steps
in your local host
setting->General Settings
go here and edit this 2
WordPress Address (URL) : http://ip/subfolder
Site Address (URL) :: http://ip/subfolder
then get open your database and export database and import to the live(your server)