/
What is my IP address?

What is my IP address?

Question

I need to add an inbound rule to the aws security group that allows my IP to access port 8080. How do I know what is my IP?

Answer

Here are the commands to find your public IP address using various methods on different operating systems:

On Windows:

  1. Using nslookup:

    nslookup myip.opendns.com resolver1.opendns.com

     

  2. Using PowerShell:

    (Invoke-WebRequest -uri "http://ifconfig.me").Content

     

On macOS and Linux:

  1. Using dig:

    dig +short myip.opendns.com @resolver1.opendns.com

     

  2. Using curl:

     

  3. Using wget:

     

On All Systems:

  1. Using Web Services:

These commands will help you find your public IP address from various environments and tools.

Related content

How do I test locally if my IoT device has TLS-SNI?
How do I test locally if my IoT device has TLS-SNI?
More like this
Deploy HiveMQ using the HiveMQ Operator in an AKS cluster, and set up a load balancer with a static public IP.
Deploy HiveMQ using the HiveMQ Operator in an AKS cluster, and set up a load balancer with a static public IP.
More like this
Opening required ports in Windows Defender Firewall
Opening required ports in Windows Defender Firewall
More like this
IP Address Range vs DNS Names for HiveMQ Cloud cluster
IP Address Range vs DNS Names for HiveMQ Cloud cluster
More like this
Setting up EKS Cluster in Amazon Web Services(AWS)
Setting up EKS Cluster in Amazon Web Services(AWS)
More like this