2c8fac87c5798709a807ddcefeca368902bece94
[webi-installers/.git] / vps-myip / README.md
1 ---
2 title: VPS My IP
3 homepage: https://webinstall.dev/vps-myip
4 tagline: |
5   VPS My IP answers the question "what's my IP address?"
6 linux: true
7 description: |
8   Creates permanent swap space that will be activated on each boot.
9
10   `vps-myip` will contact ipify.org to tell you your IP addresses:
11
12     1. `api.ipify.org` for your IPv4 or A address
13     2. `api6.ipify.org` for your IPv6 or AAAA address
14 ---
15
16 Example output:
17
18 ```txt
19 IPv4 (A)   : 136.36.196.101
20 IPv6 (AAAA): 2605:a601:a919:9800:f8be:f2c4:9ad7:9763
21 ```
22
23 ### What is an IP address?
24
25 An IP or Internet Protocol address is basically the phone number of your
26 computer or server.
27
28 Whenever you visit a domain - such as https://google.com - the `google.com` part
29 is _resolved_ to the IP address using, quite literally, the internet's Contacts
30 list, known as DNS.
31
32 ### How to get your IP address?
33
34 Due to how complex networking can be, the most reliable way to get your IP
35 address is basically to "make a call" to another server and ask it to tell you
36 what shows up on the "called id", as it were.
37
38 _IPify_ is such a service.
39
40 You likely have an IPv4 or A address as well as an IPv6 or AAAA address.
41
42 To find out your IPv4 or A address:
43
44 ```bash
45 curl -s https://api.ipify.org
46 ```
47
48 To find out your IPv6 or AAAA address:
49
50 ```bash
51 curl -s https://api6.ipify.org
52 ```
53
54 To find out either address:
55
56 ```bash
57 curl -s https://api46.ipify.org
58 ```
59
60 You can also use the `ifconfig`, `ip`, or `ipconfig` commands to figure this
61 out, but they may give you incorrect information if the network setup is complex
62 (as is the case... most of the time - home and business networks, cloud
63 networks, etc).