Thank you for your response. How is this different from a port which is used for communication over tcp/ip? Isn’t a port used for another client to connect.
A port is a destination. The gateway is the program listening on this port and rerouting requests elsewhere. Usually after adjusting for something or simplifying talking to old/new equipment/services. Internet is just one way of communication. Often a gateway enables talking between different communication ways.