now it works even without specifying port