Stay organized with collections
Save and categorize content based on your preferences.
This page describes how to use the IP allowlists connectivity method so that
Datastream can transfer data from a source database to a destination.
Public IP connectivity is most appropriate when the source database is external
to Google Cloud and has an externally accessible IPv4 address and TCP
port.
Set up IP allowlists
If your source database is external to Google Cloud, then add the
Datastream public IP addresses as an inbound firewall rule on the
source network:
Open your source database machine's network firewall rules.
Create an inbound rule.
Set the IP address of the source database to Datastream's IP
addresses.
Set the protocol to TCP.
Set the port associated with the TCP protocol. The default values are:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# IP allowlists\n\nThis page describes how to use the IP allowlists connectivity method so that\nDatastream can transfer data from a source database to a destination.\n\nPublic IP connectivity is most appropriate when the source database is external\nto Google Cloud and has an externally accessible IPv4 address and TCP\nport.\n\nSet up IP allowlists\n--------------------\n\nIf your source database is external to Google Cloud, then add the\nDatastream public IP addresses as an inbound firewall rule on the\nsource network:\n\n1. Open your source database machine's network firewall rules.\n\n2. Create an inbound rule.\n\n3. Set the IP address of the source database to Datastream's [IP\n addresses](/datastream/docs/ip-allowlists-and-regions).\n\n4. Set the protocol to `TCP`.\n\n5. Set the port associated with the `TCP` protocol. The default values are:\n\n - `1521` for an Oracle database\n - `3306`for a MySQL database\n - `5432`for a PostgreSQL database\n - `1433` for a SQL Server database\n - `27017` for a MongoDB database\n6. Save the firewall rule, and then exit.\n\nWhat's next\n-----------\n\n- Learn how about other network [connectivity methods](/datastream/docs/network-connectivity-options)."]]