Do you mean the client is behind the SME server, and the GW server is outside? If so, you don't need to do anything other than configure the GW client. I have the same setup working OK. If it's the reverse (i.e. GW server behind SME), you'll need to forward the port. Search on the forums for port forwarding - it's a fairly regular topic.
Des Dougan