Starting remote work brings you closer to consulting business which needs: networking + trust + skills + luck.
Know decisive people, managers, architects, entrepreneurs, also these who are far from your place - think global. From time to time ask them how their projects are going on, just let them know that you are available to help them. If they trust you they will come back after some time. There is always a shortage of good specialists so your pitch should be remembered.
Know your market - obtain skills which are remotely marketable. Just do some research what these people use, what stacks, what teamwork tools (Slack, Github, Stash, wikis, reviews etc) etc. Try to figure out their needs. Make a tailored CV every time to emphasize your skills and experience which match their needs.
Then you need some luck. As in every sale process that usually means repeating the process and constantly researching needs. Being on top with contacts and skills should help you close the deal, no mater where you are located.
From my experience it is easier to work for global or remote-first companies. Their main communication happens over distributed medium which is usually transparent for all remote peers. However if you are going to be just WFH guy in office-first environment then expect lack of information, dealing with poor communication tools and being forgotten when decisions are made.