From 30af691b1ba17e4f7d711430b173a8a5227670a7 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sat, 6 Mar 2021 17:21:51 -0600 Subject: [PATCH] Add Get Your Public IP Address as a workflow til --- README.md | 3 ++- workflow/get-your-public-ip-address.md | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 workflow/get-your-public-ip-address.md diff --git a/README.md b/README.md index bd31735..e48bd68 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud). -_1073 TILs and counting..._ +_1074 TILs and counting..._ --- @@ -1252,6 +1252,7 @@ _1073 TILs and counting..._ - [Change Window Name In iTerm](workflow/change-window-name-in-iterm.md) - [Convert An ePub Document To PDF On Mac](workflow/convert-an-epub-document-to-pdf-on-mac.md) - [Enable Dev Tools For Safari](workflow/enable-dev-tools-for-safari.md) +- [Get Your Public IP Address](workflow/get-your-public-ip-address.md) - [Import A Github Project Into CodeSandbox](workflow/import-a-github-project-into-codesandbox.md) - [Interactively Kill A Process With fkill](workflow/interactively-kill-a-process-with-fkill.md) - [Open Slack's Keyboard Shortcuts Reference Panel](workflow/open-slacks-keyboard-shortcuts-reference-panel.md) diff --git a/workflow/get-your-public-ip-address.md b/workflow/get-your-public-ip-address.md new file mode 100644 index 0000000..870c5db --- /dev/null +++ b/workflow/get-your-public-ip-address.md @@ -0,0 +1,26 @@ +# Get Your Public IP Address + +If you're trying to figure out what your current public IP address is, there is +a server you can ask. It is a server running at `https://ifconfig.me`. + +You can visit that URL in your browser to find your IP address and some other +User Agent/Request details. The site also mentions several `cURL` commands you +can run to get these details in your terminal. + +```bash +$ curl ifconfig.me +``` + +That will respond with just your public IP address. It is equivalent to curling +`ifconfig.me/ip`. + +There are other options as well, such as curling for a JSON response of all the +data attributes. + +```bash +$ curl ifconfig.me/all.json +``` + +See [ifconfig.me](https://ifconfig.me) for more details. + +[source](https://www.mfitzp.com/article/use-ifconfigme-to-return-your-ip-and-host/)