Captive portal detection
AssigneeHarman International Industries, Incorporate
InventorSandeep Shanbhag
Life of this patent
Estimating the term…
Abstract
A method for detecting a captive portal on a Wi-Fi network in which a device generates a random private IP address and attempts a TCP connection on HTTP port 80 and HTTP port 8080. Upon an unsuccessful TCP connection a determination is made that no captive portal is associated with the Wi-Fi network and upon a successful TCP connection, a determination is made that a captive portal is associated with the Wi-Ft network.
Claims20
A method for detecting a captive portal on a Wi-Fi network, the method carried out on a device having a processing unit including a non-transitory computer-readable storage medium capable of executing instructions of a software program, the method comprising the steps of:
- connecting to a Wi-Fi network;
- acquiring an Internet Protocol (IP) address from a dynamic host configuration protocol on the Wi-Fi network;
- setting the Wi-Fi network IP address as a default gateway to Internet;
- generating, at the device, a random private IP address;
- attempting a TCP connection to the random private IP address on HTTP port:
- 80, HTTP port:
- 8080, or HTTP port:
- 80 and HTTP port 8080;
- upon an unsuccessful TCP connection to the random private IP address, making a determination that a captive portal has not been detected;
- and
- upon a successful TCP connection to the random private IP address, making a determination that a captive portal has been detected.
A computer readable medium comprising a program, which, when executed by one or more processors, performs an operation comprising:
- connecting a device to a Wi-Fi network;
- acquiring, at the device, an Internet Protocol (IP) address from a dynamic host configuration protocol on the Wi-Fi network;
- setting the Wi-Fi network IP address as a default gateway to Internet in a routing table at the device;
- generating, at the device, a random private IP address;
- attempting a TCP connection from the device to the random private IP address on HTTP port:
- 80, HTTP port 8080, or HTTP port 80 and HTTP port:
- 8080;
- upon an unsuccessful TCP connection, making a determination that no captive portal is associated with the Wi-Fi network;
- and
- upon a successful TCP connection, making a determination that a captive portal is associated with the Wi-Fi network.
A method for detecting a captive portal on a Wi-Fi network, the method carried out on a head unit of a vehicle, the head unit having a processing unit including a non-transitory computer-readable storage medium capable of executing instructions of a software program, the method comprising the steps of:
- connecting the head. unit to a Wi-Fi network;
- acquiring, at the head unit, an Internet Protocol (IP) address from a dynamic host configuration protocol on the Wi-Fi network;
- setting the network IP address as a default gateway to Internet on a routing table at the head unit;
- generating, at the head unit, a random private IP address;
- attempting a HTTP connection between the head unit to the random private IP address on HTTP port:
- 80, HTTP port:
- 8080 or HTTP port:
- 80 and HTTP port:
- 8080;
- upon an unsuccessful TCP connection, making a determination that no captive portal is associated with the Wi-Fi network;
- and
- upon a successful TCP connection, making a determination that a captive portal is associated with the Wi-Fi network.
Dependencies are inferred from the claim text.