Search code examples
virtual-machineoracle-sqldeveloperportforwardingoracle-xe

Can't connect to DB in virtual machine


I'm having a problem when trying to connect to a DB installed in my Redhat virtual machine.

I have oracle XE installed in my VM. Here is my port forwarding configuration:

Port Forwarding

However, when I try to connect using the SQL developer on Windows, I can't get a connection and I get the following error when testing the connection:

sqlDev

How can I solve this? Thanks


Solution

  • Solved.

    All I had to do was stop the iptables firewall in RHEL

    service iptables stop
    

    I've removed iptables so this won't happen again, but that is entirely up to you!