If you are at the beginning stages of your career, i.e. less than five years since you graduated college and join the ranks of working class, the year old work history at one place is not really considered job hopping. Also, if you were only employed by two places, people will think you did not find what you expected. After all, it is very easy for a fresh grad to say "yes" to a job offer and get disillusioned after a few weeks. Job hopping starts to become dangerous, if the number of years of experience in your resume is less than the number of positions you held, after 5 or so years.
Coming to how much active that you need to be depends on how quickly you want to relocate. Let me clue you in on one thing: If you are looking to move more than an hour away, or may be two, depending on the employer, they will not consider your really seriously as their first choice. This is especially true if you are not at a senior level in your career. They will look for local, junior developer candidates. So, if you want to relocate, seriously, you may need to quit your job and relocate to the locality before you can be considered equally with the other local candidates.
If you are really unhappy, start your job hunt right away. If you are okay but just want to investigate your options, put out confidential resumes on job hunting sites, subscribe to emails from simplyhired and indeed, remembering not to check that email address from your workplace, unless you want someone to get an idea you are looking to get out. At some places, people know or expect that you will leave and don't make a big fuss, if they see you looking at a new job description from monster.com or alike on your screen from time to time, as long as it is not every minute of the working day, while at some other places, doing this is extremely frowned upon and can result in disciplinary action. Tread the waters carefully while you are looking for your next gig.