Not connecting to internet through Android Phone

The configure option where I am told to change settings to 'localhost' and Port to '2020' to stop adverts showing up on my android mobile actually prevent me from connecting to my home wifi.
Is there a way around this?
Is there a way around this?