There is no limit - I assume your code stops at the same point. Probably where the connection is made up.
To keep your project "private" you should use a local webserver:
XAMPP[
^] is free, easy to use and works like a charm.
I can recommend
Log4J [
^]for proper logging, console print outs are the dirty way of doing it.