I have been working as a consultant/contractor since April last year.
Writing a lot of good blog posts is the best. Sometimes people contact me directly via my blog.
Now software developers are shortage, so you can find your clients easily. Good luck!