the nut is right up against the wheel, not on the bicycle. There is one on each side of the wheel. Depending on the hub, you may be able to tighten them your self, just don't get them too tight.
this graphic may help explain where they are:
there is a locknut on either side of the hub, that is what your looking to check.