If you set up a custom wifi name and password on your previous network, then change the current name and password to what it was before, otherwise you will need a new remote.
Question though, what phone do you have? Exact make and model (i.e. Samsung Galaxy S6, LG V20)