If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Possible to detect default gateway IP of visitors?

Hi,

I own a garage door company in Montreal and recently have a new line of garage doors where users can type the default gateway of the SSID broadcasted from my new garage doors( basically my garages doors have a built-in router) and login from their computer or phones by typing in the default gateway or DNS, this way they can control their garage doors from the internet if they are in range of the signal broadcasted from my doors.

The following would help me A LOT!:

1.Is it possible to have a php script on my website that automatically detects the default gateway IP of the visitor's?

That also won't work. Register globals are required to create $REMOTE_ADDR, and register_globals are gone as of 5.4 (happy happy).

For the OP, no I don't believe there is a method of retrieving the gateway in PHP. However, if you trace it, then the second last hop should be the last device before the machine which *may* be the gateway. That assumes it replies of course. This is also an unreliable way of retrieving this information. A better solution would be to have the software installed by the user themselves, or for a web control implement the software into the opener itself. This can then be attached to via http directly to control it from any location. I wouldn't have a clue the amount of work that would require at that end.