Does 000webhost require the WWW. to be used?

Right now my web site isnt viewable on 000webhost unless the www. is in front of the domain name.

Shouldnt it work both ways? with or without the www. ?

Sounds like it is misconfigured.
Without the domain I am unable to assist you.