Error number: 4020Error message: 4020 : INVALID : Information received from an Invalid IP address.
Explanation: If your website is integrated with Sage Pay using either the Server or Direct method we must have a valid IP address from your platform or web hosting company in order to accept transactions.
The 4020 error message indicates that the transactional post that is coming from your site/hosting company is not being made using the valid IP addresses that you have entered into your Sage Pay account – via MySagePay.
All transactions that are posted from your website/server MUST be sent via one of the IP addresses that you have provided to Sage Pay. If your IP address is not entered within MySagePay, or is coming from a dynamic IP range then you will always encounter this error.
Solution: The 4020 error message is an easy fix, the first thing you will need to do to prevent this error is obtain the IP address that is being used to post the information through to Sage Pay.
You are able to locate the IP address that you are using by –
- Process a transaction using the Sage Pay Simulator – you can then obtain the IP address that is being used for the transaction.
- Contact your Server administrator – if your Server is being hosted internally – they will then be able to provide you with the IP directly.
- Contact your Hosting Company – if your site is being externally hosted by a 3rd party – they will be able to provide you with the IP directly.
- Perform a “Ping” test – open your start menu, type “CMD”, this will then load up the DOS screen where you can then type “PING” followed by the URL you are trying to reach – your own website – this will then provide you with the IP address of the site that is making the post to Sage Pay.
Once you have the IP address you will then be able to enter this into your MySagePay admin account, to do this see our Adding IP article here.
https://www.sagepay.co.uk/support/error-codes/4020-invalid-information-received-invalid-ip-address