I figured out the problem. It was that the router doesn’t save configuration if Safari is being used. I tried Chrome and it now worked.
Thanks.