![]() |
Wifi router question
I have noticed that with my wifi router the address given to my laptop varies between 192.168.0..1,2,3,4,5 etc. Am I correct in thinking that this depends on how many devices are connected to the local network ? So what controls this address, because surely my device is the 'dominant' one, that is connected to the network for the longest time each day, yet often a box will appear telling me that my address e.g 192.168.0.2 is being given to another device and I now have 192.168.0.3 etc....What causes that ? Also at home there are only ever a maximum of 4 devices connected, yet today my address is 192.168.0.5 :confused: Could this indicate that someone else is using the network, even though it's WPA/WPA2-PSK encrypted ? Any advice appreciated.
SHJ |
Could this indicate that someone else is using the network, even though it's WPA/WPA2-PSK encrypted ? However the more likely answer is DHCP. The router runs a little server process which dishes out IP addresses automatically to devices that request it. Most DHCP servers will lease the IP to a MAC address for a given lifetime, however it sounds like the DHCP lease time is set very short on your router and hence is why new IPs are being dished out. |
Thankyou mr mixture, can one change the DHCP lease time within the router settings or is it something generally set by the manufacturer ? This one being the French Sagem company btw.
SHJ |
You should certainly be able to change the lease time.... but you don't often see more advanced settings exposed in home ADSL routers.
Sometimes there's a hidden advanced screen you can access by appending something to the router address in your browser's web bar. I'll have a dig around re:Sagem, haven't seen many of those. (By the way, just incase you weren't aware and were wondering, my reference to MAC address earlier was as in Media Access Control address... i.e. the unique identifier of your network card... rather than Mac as in the abbreviation of Macintosh). Edit to add: Found a somewhat old (2004) Sagem manual which suggest its might be in Settings -> Network. Not sure if the menu structure has changed. |
Given that this was my pet subject for several years as elucidated in previous threads, I can state the following:
- MS O/Ss do not (or at least in the early 2000s *did* not) follow the RFC as regards lease times for DHCP. - Many consumer router DHCP daemons do not lease the same address to the same client If you want the same address giving to the same client, your best bet is by static allocation over DHCP - this is where you get the MAC address of your device's network card (the address is 6 pairs of hex characters separated by colons and looks akin to this: 09:87:56:b3:2a:cf), and you insert it into the router in a static DHCP allocation table against the IP address you wish to receive. That way, when your device requests an IP address it is always given the one associated to that device. HTH :ok: |
If you log in to the router there is probably a page somewhere listing connected devices.
|
As a matter of interest, what's your router address? It's normally either the first available or the last available address in the subnet - e.g. 192.168.0.1 or 192.168.0.254, in your network.
If the router address is itself 192.168.0.1 and you have no more than 4 other devices, then you would not expect to see an address higher than 5. SD |
Thanks for all the replies. I did a reboot of the wifi router and my address changed from 192.168.0.5 down to 0.2. I checked the users and there appeared to be just one, me :hmm: The router address is 0.1, but I'm sure that my laptop's address has been this many times in the past or is my drug-addled rock star past catching up with me finally ?
I've not found anything that allows me to change the DHCP lease length, but none of you experts have explained to me why my laptop happily using said router is turfed off it's address unceremoniously when any other allowed device connects to the local network ? It doesn't make sense to me as the router could just as easily allocate another address to the newly joined device, or is that too simple ? SHJ |
The router address is 0.1, but I'm sure that my laptop's address has been this many times in the past drug-addled rock star past catching up why my laptop happily using said router is turfed off it's address unceremoniously when any other allowed device connects to the local network SD |
I'm not sure exactly what you mean - do you mean you lose network connectivity when another device connects, or just that you don't get the same IP address every time you power up your laptop? SHJ |
Originally Posted by Saab Dastard
(Post 8300958)
As a matter of interest, what's your router address? It's normally either the first available or the last available address in the subnet - e.g. 192.168.0.1 or 192.168.0.254, in your network.
If the router address is itself 192.168.0.1 and you have no more than 4 other devices, then you would not expect to see an address higher than 5. SD |
Originally Posted by SpringHeeledJack
(Post 8301174)
So.....I'm on pprune (of course!) happily connected and surfing the future and as soon as someone else comes home, their device(s) seem to command priority from the router and a little box pops up on the screen telling me, as it's already a 'fait accompli' , that my address has been changed to (e.g from ...0.2 to ...0.3 etc) and that's that. If I recall correctly I cannot continue using the router until I click the azure blue 'agree' button. Why should my device be of less priority and the others more ? I know my place, but really!
SHJ |
My guess is that the client device connects, gets given 0.2 but then fails to renew the lease before expiry. Something else comes along and the DHCP implementation in the router gives it the lowest currently-free address. Your client then detects the clash and asks for another IP address. Some DHCP implementations will attempt to reserve an IP address for a particular MAC and will only re-use one if it runs out of spare addresses.
I hardwire my DHCP to dish out known fixed addresses to the known devices on the network and have a small dynamic pool for new devices. A quick check shows that my home network has accumulated 50 different known devices, although some of those are now defunct and some are virtual machines. |
Can you further describe the azure dialog box? as this isn't consistent with the expected operation of DHCP and is either an address conflict as suggested by SD or the function of some third party s/w. Just to be clear (using OS X in case that wasn't) a typically 'Apple' styled info box pops up in the middle of the screen telling me that my address has been changed and that I'm no longer connected, and I either press the white cancel/decline button OR the azure blue accept/change button to continue online. My curiosity is why, why has another device priority over another seemingly and why couldn't the router just leave me alone and give one of the other addresses to the other device(s) allowed on the network ? When I am referring to my address changing it's NOT the Mac address, but the IPv4 address if that helps :8 SHJ |
Originally Posted by llondel
(Post 8301568)
My guess is that the client device connects, gets given 0.2 but then fails to renew the lease before expiry. Something else comes along and the DHCP implementation in the router gives it the lowest currently-free address. Your client then detects the clash and asks for another IP address. Some DHCP implementations will attempt to reserve an IP address for a particular MAC and will only re-use one if it runs out of spare addresses.
|
Originally Posted by SpringHeeledJack
(Post 8302620)
Just to be clear (using OS X in case that wasn't) a typically 'Apple' styled info box pops up in the middle of the screen telling me that my address has been changed and that I'm no longer connected, and I either press the white cancel/decline button OR the azure blue accept/change button to continue online. My curiosity is why, why has another device priority over another seemingly and why couldn't the router just leave me alone and give one of the other addresses to the other device(s) allowed on the network ?
When I am referring to my address changing it's NOT the Mac address, but the IPv4 address if that helps :8 SHJ It does indeed sound like your router might be at fault though if it's a standard Apple dialog box you're clicking on. Why don't you attempt to update the firmware on the router and see if that fixes things? routers are known to undergo many iterations of firmware throughout their lives, and you might get several other benefits as well. |
Thanks MB. The router is a SKY Sagem router and apparently it is updated automatically in the dead of night on a regular basis and according to SKY I have the latest firmware that came out 2 weeks ago. As I haven't experienced this being turfed out of my IPv4 address for a few weeks (but many times before) perhaps it will not now happen again ?
SHJ |
Originally Posted by SpringHeeledJack
(Post 8302834)
Thanks MB. The router is a SKY Sagem router and apparently it is updated automatically in the dead of night on a regular basis and according to SKY I have the latest firmware that came out 2 weeks ago. As I haven't experienced this being turfed out of my IPv4 address for a few weeks (but many times before) perhaps it will not now happen again ?
SHJ Take 2 aspirin and see me in the morning ;) |
Of course, a "polite" DHCP server will attempt to ping the IP address it's about to assign and if it doesn't like what happens next, will choose a different one and try that instead. I don't think that's a requirement though, merely an example of defensive programming.
|
Big Hammer??
I just about managed to follow the conversation above.
It convinces me that the only proper way of solving IT problems is by the injudicious use of a very large hammer. Then, go and listen to the hi-fi instead. My Rega Planar 3 is 100 years old and still works perfectly, not requiring any XP type updates, and the NADs and the great big NEF Q's do not need an update on the first Tuesday of each month...... |
| All times are GMT. The time now is 12:27. |
Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.