Skip to content

Commit c81eefb

Browse files
authored
docs: add public IP example (#817)
1 parent cca55b2 commit c81eefb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,16 @@ Note: the following invocations assume you have downloaded the
247247
well-known location to have it available on your `PATH`.
248248

249249
``` bash
250-
# Starts the proxy listening on 127.0.0.1:5432
250+
# Starts the proxy listening on 127.0.0.1:5432, uses private IP by default
251251
./alloydb-auth-proxy <INSTANCE_URI>
252252
```
253253

254+
To connect to an instance's public IP, use:
255+
256+
``` bash
257+
./alloydb-auth-proxy <INSTANCE_URI> --public-ip
258+
```
259+
254260
To connect to multiple instances, use:
255261

256262
``` bash
@@ -288,7 +294,7 @@ principal as the user you want to log in as, and start the Proxy like so:
288294
``` bash
289295
./alloydb-auth-proxy \
290296
--auto-iam-authn \
291-
<INSTANCe_URI>
297+
<INSTANCE_URI>
292298
```
293299

294300
Note: when using the query-string syntax, the instance URI and query parameters

0 commit comments

Comments
 (0)