Hi
Your first screenshot does not have the gateway port mentioned. Please check that you have configured the correct GW Host and Port from the transaction smgw -> Go To -> Parameters -> Display. Look for "gateway hostname" and "gateway service". The last 2 digits on the service is the gw port.
Best regards
Partha