When connecting to a wireless hotspot provided by someone on a 3/4G network, does your device get an IP address?

16,480

Solution 1

Say a person is providing a wireless hotspot to me as I have no internet, when I access the internet what is my IP address set as?

When a person connects to a wireless hotspot, two IP addresses are set i.e. a Private IP address and a Public IP address. The wireless hotspot automatically allots the requesting device a Private IP address from a range of available IP addresses which is unique to that device. The device then connects to the internet via a Public IP address.

To break this down, when you turn on Mobile Hotspot, your phone's WiFi adapter turns on the router mode. Now the IP address is assigned by the wifi adapter running in router mode. In stock Android devices the default IP of your phone will become 192.168.42.1 and subnet mask of 255.255.255.0. However, this might change.

How can you find out the IP address of your device when on a hotspot?

In Windows, use ipconfig in cmd. Look for Default Gateway under your network adapter for your router's IP address. Look for IPv4 Address under the same adapter section to find your computer's IP address. Replace ipconfig with ifconfig in linux.

Solution 2

Use -ip neigh - in a linux terminal installed on android phone. It returns IP and MAC of devices connected to android hot spot.

Share:
16,480

Related videos on Youtube

Grilla99
Author by

Grilla99

Computer Science student at the University of Reading.

Updated on June 04, 2022

Comments

  • Grilla99
    Grilla99 almost 2 years

    Two parts to this question:

    1) Say a person is providing a wireless hotspot to me as I have no internet, when I access the internet what is my IP address set as?

    --> Some companies basic level of fraud detection I assume is that the geographical location of the IP address is nowhere near the location of the IP of the device accessing whatever service it may be. So if you were on a mobile device accessing a site from a geographical location similar to the usual device, would this bypass this?

    2) How can you find out the IP address of your device when on a hotspot

  • Elysian Storm
    Elysian Storm almost 6 years
    Some companies basic level of fraud detection I assume is that the geographical location of the IP address is nowhere.... This question is not clear. Explain it in more detail.
  • Grilla99
    Grilla99 almost 6 years
    Great answer and was very in detail so thanks for that.
  • Grilla99
    Grilla99 almost 6 years
    And the 2nd question caused me to figure it out myself, so ignore that. Cheers :)
  • Elysian Storm
    Elysian Storm almost 6 years
    If the answer solves your question, consider accepting it by clicking the tick icon next to the answer. Kudos!
  • Admin
    Admin about 2 years
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.