Posted: Wed Dec 19, 2018 14:45 Post subject: [Fixed] Can't access Web-UI. Subnet mask set wrong
Re-posting it here. Posted it at the General Question since I thought it is not a hardware issue. Anyway, here it is..
Quote:
Hey guys! So I set my router's (TP-Link WR940N) subnet mask to 0.0.0.0 thinking that my ISP's gonna set it for me just like with the DNS when set to 0.0.0.0. Learned just 30 minutes ago that that's not how it works. Now I can't access anything via the router.
Also, I disabled the reset button in the Web-UI. So I can't just reset it to the default state by pressing the reset button at the back of the router. I also tried the Hard Reset 30-30-30 but nothing. Did it multiple times but no luck.
Is there a workaround here? Even just an access to the Web-UI? Or resetting is the only option?
I'm really new to this. So I'm sorry if it's really dumb.
PS - English isn't my first language so please bear with me.
Any help would be appreciated. Thanks!
Edit - I just remembered that I've only hit the "Apply Settings" button after setting the subnet mask and not the "Save" button. So it should go back to the previous settings when I rebooted the router, right? But weirdly it didn't.
Edit 2 - So just to be more clear. The one that I've edited was the option under the wireless settings submenu and not under the wan/setup. So I think the router is still connecting fine to the internet as the light indicator is saying.
Last edited by RJOflodor on Sat Dec 22, 2018 5:21; edited 3 times in total
Edit - Update: Tried the TFTP (Simple UI .exe) but it keeps saying "Failed to resolve the host address". Maybe because the Default Gateway address above is empty. Even tried the default DD-WRT address (192.168.1.1) but same result.
Edit 2 - Edit - I just remembered that I've only hit the "Apply Settings" button after setting the subnet mask and not the "Save" button. So it should go back to the previous settings when I rebooted the router, right? But weirdly it didn't.
Edit 3 - So just to be more clear. The one that I've edited was the option under the wireless settings submenu and not under the wan/setup. So I think the router is still connecting fine to the internet as the light indicator is saying.
Edit 2 - Edit - I just remembered that I've only hit the "Apply Settings" button after setting the subnet mask and not the "Save" button. So it should go back to the previous settings when I rebooted the router, right? But weirdly it didn't.
Do you remember what the lan ip (aka in DDWRT the "Local IP Address") of the router is?
No I don't. Is it not 192.168.1.1? I didn't change any ip numbers in the settings.
Wildlion wrote:
You will probably have to set a static IP and connect to the router's ip address directly.
Tried random numbers from 192.168.1.2 - 150 but nothing although I tried setting it to 192.168.1.1 and got this [attached] but then it won't accept any combination of name and pass. My own, tp-link's and dd-wrt's name and pass.
so based on the screenshot, it looks like you got to the webpage of the router, did you see the status page when you typed 192.168.1.1 into your browser? or did you disable/password protect that as well?
Since it looks like that you got to the router status page, but you do not know your username/password, there is not much more that I can suggest, because even if you got a serial connection set up, you will still need the password (user name would be root in that case because you are login into the console)
The only things that I can think of left is jtag connection or try to short out/reset the nvram....
Posted: Fri Dec 21, 2018 17:23 Post subject: Pin Shorting - don't do it
Wildlion wrote:
Yes the default is 192.168.1.1 for the router....
so based on the screenshot, it looks like you got to the webpage of the router, did you see the status page when you typed 192.168.1.1 into your browser? or did you disable/password protect that as well?
Since it looks like that you got to the router status page, but you do not know your username/password, there is not much more that I can suggest, because even if you got a serial connection set up, you will still need the password (user name would be root in that case because you are login into the console)
The only things that I can think of left is jtag connection or try to short out/reset the nvram....
Don't Pin short. Just no. As for JTAG, most Atheros routers do not have JTAG. You are wrong about serial, before the linux kernel boots up you can use serial without a username or password (usually have to spam tpl or CTRL+C, or something else to stop the boot process. Then you can issue some bootloader commands or your best option, just flash a DD-WRT version over the one that is there. _________________ Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings
Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.
Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS
Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
Posted: Fri Dec 21, 2018 17:30 Post subject: IP Address
Why did you set the IP address on your computer to 192.168.1.1 (same as the router)? There is no reason for that. Set it to 192.168.1.40, for example.
You can recover these routers with Serial and TFTP or you can try what Wildlion is suggesting (Pin shorting and JTAG), neither of which you will have much luck with. Just saying, I have recovered several TP-Links using Serial and TFTP (841 v8, 940N v3, Archer C7 v2, 3600v1, etc). I have experience with these.
I have only pin shorted one router (A Belkin Play N600), the wiki and several other places mentioned that pin shorting was the best way to get the router to boot into recovery mode. It worked, but I only every had to do it on that particular router model. _________________ Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings
Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.
Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS
Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
Since it looks like that you got to the router status page, but you do not know your username/password
It worked. Just got confused with all the names and passwords I've used before. Thank you buddy!
Wildlion wrote:
so based on the screenshot, it looks like you got to the webpage of the router, did you see the status page when you typed 192.168.1.1 into your browser?
Didn't even realize that that's how it looks in firefox. I thought it was just another error for trying to connect to the router. Just switched to firefox for this because my chrome has a lot of extension/plugins also part of trial and error. Anyway, thanks again.
bushant wrote:
Sadly for you "Save" allows you to navigate the webif changing settings and saving without actually applying them.
You do not have to click SAVE before APPLY SETTINGS but it is a good idea.
You're right but clicking save will make it permanent though right? And apply settings will just show the effect of the new setting which I was trying to do and then if it fails just reboot the router to go back to the prev settings.
ian5142 wrote:
Why did you set the IP address on your computer to 192.168.1.1 (same as the router)? There is no reason for that. Set it to 192.168.1.40, for example.
I know, just got so frustrated but that did it. Yes I tried 192.168.1.(2-50) randomly but no connection.
You're right but clicking save will make it permanent though right? And apply settings will just show the effect of the new setting which I was trying to do and then if it fails just reboot the router to go back to the prev settings.
NO -- anything you change and 'Save' will take affect upon reboot.
Most everything you change then 'Save' will take affect when you also 'Apply Settings'
There is NO undo recent settings changes in dd-wrt.
Any changes made and Saved will have to be manually undone and Saved or you would have to use reset button or GUI 'reset to factory defaults'
You're right but clicking save will make it permanent though right? And apply settings will just show the effect of the new setting which I was trying to do and then if it fails just reboot the router to go back to the prev settings.
NO -- anything you change and 'Save' will take affect upon reboot.
Most everything you change then 'Save' will take affect when you also 'Apply Settings'
There is NO undo recent settings changes in dd-wrt.
Any changes made and Saved will have to be manually undone and Saved or you would have to use reset button or GUI 'reset to factory defaults'
Thanks for that! That got me confused and also misunderstood bushant. Exactly why I'm in this hole besides my lack of knowledge. Really thought the 'Apply Settings' is used for testing to see the effect but not save it yet because there's a save button for that. Get what I mean? That got me confused.
Posted: Sun Dec 23, 2018 3:26 Post subject: Re: Pin Shorting - don't do it
ian5142 wrote:
Wildlion wrote:
Yes the default is 192.168.1.1 for the router....
so based on the screenshot, it looks like you got to the webpage of the router, did you see the status page when you typed 192.168.1.1 into your browser? or did you disable/password protect that as well?
Since it looks like that you got to the router status page, but you do not know your username/password, there is not much more that I can suggest, because even if you got a serial connection set up, you will still need the password (user name would be root in that case because you are login into the console)
The only things that I can think of left is jtag connection or try to short out/reset the nvram....
Don't Pin short. Just no. As for JTAG, most Atheros routers do not have JTAG. You are wrong about serial, before the linux kernel boots up you can use serial without a username or password (usually have to spam tpl or CTRL+C, or something else to stop the boot process. Then you can issue some bootloader commands or your best option, just flash a DD-WRT version over the one that is there.
Agreeing with you ian5142, hate the pin short (but if it is broken already and you got nothing else to lose ;P )
You are right about the serial connection I forgot pre-linux kernel boot. Thank you for catching that.
Since it looks like that you got to the router status page, but you do not know your username/password
It worked. Just got confused with all the names and passwords I've used before. Thank you buddy!
Wildlion wrote:
so based on the screenshot, it looks like you got to the webpage of the router, did you see the status page when you typed 192.168.1.1 into your browser?
Didn't even realize that that's how it looks in firefox. I thought it was just another error for trying to connect to the router. Just switched to firefox for this because my chrome has a lot of extension/plugins also part of trial and error. Anyway, thanks again.
bushant wrote:
Sadly for you "Save" allows you to navigate the webif changing settings and saving without actually applying them.
You do not have to click SAVE before APPLY SETTINGS but it is a good idea.
You're right but clicking save will make it permanent though right? And apply settings will just show the effect of the new setting which I was trying to do and then if it fails just reboot the router to go back to the prev settings.
ian5142 wrote:
Why did you set the IP address on your computer to 192.168.1.1 (same as the router)? There is no reason for that. Set it to 192.168.1.40, for example.
I know, just got so frustrated but that did it. Yes I tried 192.168.1.(2-50) randomly but no connection.
Fixed now. Thanks guys and happy holidays!
Glad to have helped and that it is fixed for you!!!