Generally, the port number is 152 1, but if you change the port number when installing Oracle, you need to check the port number on the Oracle server. You can read the information of the database through the tnsnames.ora file.
You can see something similar to the following:
HOST= is the host address (if it is a written host name, you can check the IP address corresponding to the host name in the /etc/hosts file).