Difference between ごめんください and お邪魔します


On a recent question, [非回答者さん wrote the following
comment](https://japanese.stackexchange.com/questions/18776/how-is-gomen-
used#comment43025_18776):

> Tokyoites say ごめんください all the time when entering another person's home. I
> cannot even think of another phrase that could replace it.

Another user was surprised and [asked a follow-up question on
chat](http://chat.stackexchange.com/transcript/message/17827983#17827983):

> Don't people use お邪魔します too when entering another people's house?

They do seem rather similar, so I thought I would ask about them here:

### What exactly is the difference between ごめんください and お邪魔します？




When you visit another person's home, you say ごめんください in order to check
whether anybody is home.

When you enter another person's home, you say お邪魔します to the host.

When you leave another person's home, you say お邪魔しました to the host.




When you visit another person's home, you say ごめんください in order to check
whether anybody is home.

When you enter another person's home, you say お邪魔します to the host.

When you leave another person's home, you say お邪魔しました to the host.

