I'm glad it worked out.

Go to ${ORACLE_HOME}/network/admin

There you will find template tnsnames.ora and listener.ora files, save the originals and play with the other two.

Listener is needed for remote connections. Clients looking to connect to the database have to have a copy of your tnsnames.ora entry in the client machine alongside with Oracle client software.