IP.Myaddress 3.6 KB

1234567891011121314151617181920
  1. version=pmwiki-2.2.130 ordered=1 urlencoded=1
  2. agent=w3m/0.5.3+git20210102
  3. author=jrmu
  4. charset=UTF-8
  5. csum=
  6. ctime=1621252386
  7. host=125.231.70.149
  8. name=IP.Myaddress
  9. rev=2
  10. targets=
  11. text=(:title My IP Address:)%0a%0a!! Use DNS%0a%0aTo determine your current public IP address, you can run:%0a%0a[@%0a$ dig +short myip.opendns.com @resolver1.opendns.com%0a@]%0a%0aor:%0a%0a[@%0adig TXT +short o-o.myaddr.l.google.com @ns1.google.com%0a@]%0a%0aThis will tell you at least one of your public IP addresses.%0a%0a!! Check DNS records%0a%0aIf you have DNS setup, you can also run%0a%0a$ host username.example.com%0a%0aYou'll want to replace @@username.example.com@@ with your real domain.%0a%0a!! Check ifconfig%0a%0aIf you have multiple IP addresses, you might find more information using ifconfig:%0a%0a[@%0a$ ifconfig%0a@]%0a%0aLook for lines that begin with inet, such as:%0a%0a[@%0a inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255%0a@]%0a%0aThis line will tell you the IP addresses your system has. 127.0.0.1 is localhost, which always refers to the machine itself, so it is not a public IP address. Likewise, 192.168.0.0/16 and 10.0.0.0/8 are not publicly reachable IP addresses.%0a%0aOnce you find your IP address, look for the interface name, a which is made of a few letter followed by a number. If OpenBSD is run on a virtual machine, the external interface is probably vio0.%0a%0aYou can learn more about the device driver for the interface by typing the interface name without the number:%0a%0a[@%0a$ man vio%0a@]%0a%0aReplace @@vio@@ with your interface.%0a%0a
  12. time=1628356442
  13. title=My IP Address
  14. author:1628356442=jrmu
  15. diff:1628356442:1621252386:=1,31c1,2%0a%3c (:title My IP Address:)%0a%3c %0a%3c !! Use DNS%0a%3c %0a%3c To determine your current public IP address, you can run:%0a%3c %0a%3c [@%0a%3c $ dig +short myip.opendns.com @resolver1.opendns.com%0a%3c @]%0a%3c %0a%3c or:%0a%3c %0a%3c [@%0a%3c dig TXT +short o-o.myaddr.l.google.com @ns1.google.com%0a%3c @]%0a%3c %0a%3c This will tell you at least one of your public IP addresses.%0a%3c %0a%3c !! Check DNS records%0a%3c %0a%3c If you have DNS setup, you can also run%0a%3c %0a%3c $ host username.example.com%0a%3c %0a%3c You'll want to replace @@username.example.com@@ with your real domain.%0a%3c %0a%3c !! Check ifconfig%0a%3c %0a%3c If you have multiple IP addresses, you might find more information using ifconfig:%0a%3c %0a%3c [@%0a---%0a> To determine your current IP address:%0a> %0a33,52c4,5%0a%3c @]%0a%3c %0a%3c Look for lines that begin with inet, such as:%0a%3c %0a%3c [@%0a%3c inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255%0a%3c @]%0a%3c %0a%3c This line will tell you the IP addresses your system has. 127.0.0.1 is localhost, which always refers to the machine itself, so it is not a public IP address. Likewise, 192.168.0.0/16 and 10.0.0.0/8 are not publicly reachable IP addresses.%0a%3c %0a%3c Once you find your IP address, look for the interface name, a which is made of a few letter followed by a number. If OpenBSD is run on a virtual machine, the external interface is probably vio0.%0a%3c %0a%3c You can learn more about the device driver for the interface by typing the interface name without the number:%0a%3c %0a%3c [@%0a%3c $ man vio%0a%3c @]%0a%3c %0a%3c Replace @@vio@@ with your interface.%0a%3c %0a---%0a> %0a> $ host %3cdomain>%0a\ No newline at end of file%0a
  16. host:1628356442=125.231.70.149
  17. author:1621252386=jrmu
  18. diff:1621252386:1621252386:=1,5d0%0a%3c To determine your current IP address:%0a%3c %0a%3c $ ifconfig%0a%3c %0a%3c $ host %3cdomain>%0a\ No newline at end of file%0a
  19. host:1621252386=198.251.81.119