set gateway port.