Follow the steps given below and configure Internet settings to resolve the error:
Close QuickBooks.
Go to the Help menu.
Choose Internet Connection Setup.
Select Use my computer’s Internet connection settings to establish a connection when this application access the Internet and then Next.
Choose Advanced Connection Settings.
Select the Advanced tab.
Open the Settings window, select Use SSL 2.0 and Use SSL 3.0 options.
Click OK and then Done.
Dial our toll-free number (1800-579-9430) and talk to certified QuickBooks professionals to get more assistance for QuickBooks error 12157.