If the terminal is online and able to access the internet that is giving this message when trying to process stand-in payments try waiting 15-30 mins and testing again.
Possible Issues:
1. No internet connection
2. BAD DNS (Even if it is online)
3. Firewall blocking communication