the database is running on a different box and the port is configured to listen only at 1522. The listerner is up and running and I could connect with the same tnsnames.ora from other client machines as well.