If you cannot log in because you forgot the admin password, your only option is a hardware factory reset.
Using 192.168.18.1 as a private gateway is inherently safe, but human error makes it vulnerable. Ip 192.168 18.1