While connected to the wifi of a powerline adapter, the ip my mac network settings and ifconfig show is 192.168.0.10, however when browsing to this ip I get an ERR_CONNECTION_REFUSED
The actual ip is 192.168.0.90
I'm just curious to understand why there is a difference
Context
Installed some powerline wifi adapters the other day ( something like this )
Needed to change the network settings to match my existing wifi name and password. Thought I could use the small bit of networking knowledge to hit the adapter's ip directly for the settings instead of installing vendor software to do so. ipconfig didn't point to the right place so in the end had to get the software and that located the adapters and listed the correct ip to change the settings.
How was the vendor software able to find the true ip?
22 Answers
Presuming these devices work as simply a 'dumb hub' - in which case there won't be an ip address displayed in the ipconfig output at all. What you likely thought you needed was the gateway address, but this will be the ip of a completely different system.
How the software was able to find the true IP is something that you can only really guess at, until you do some more research such as using wireshark to see what packets it actually sends out in the discovery phrase. It's most likely that the device is listening on a port and just responds with the IP address it's using. All the software has to do is a scan of all IP's in your subnet, using this port to see which devices respond in the manner it expects.
Other such ways of identifying the devices is using multicast or broadcasts configured in such a way that only the power-line adaptors reply.
Mine didn't show up in the DHCP clients list on the router. You can find it on your subnet using nmap:
nmap -p80 192.168.0.0/24 The vendor software could do the same thing and check the http response if it finds one.
If you find the IP you can check all ports:
nmap -p- 192.168.0.108 Mine has telnet open, so the scanning software can use that too if it has a secret knock.