Trouble with arduino ethernet webservers

How does the droid know that IP address?

I type in the IP address given to me on the serial monitor. I thought I read somewhere that you need to match the gateway address with your routers IP address? is that correct?