I was trying to kill a process which was running on the port 8080 and utilize it for remote debugging purpose.
Where my source code is on my host machine, and the compiled jar is in another Ubuntu server. Hence I was trying to do remote debugging on the port 8080, I changed the necessary parameters on my
IntelliJ configuration in order to proceed with the remote debugging and I tried running the jar from ths server machine as such:
java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8080 hdfstohive-1.0-SNAPSHOT-jar-with-dependencies.jar
Since I killed the process which was running on my server machine, now I'm not able to see the port being opened when I did
nmap serverip and
netstat -atun as well.
So I tried adding it to the firewall (
sudo ufw allow 8080/tcp) rule and in the iptable (
sudo iptables -I INPUT -p tcp -s 0.0.0.0/0 --dport 8080 -j ACCEPT) as well, still, I'm not able to see the port being opened. I've also tried disabling the firewall as well, but still no luck.
So what I need is, to make that port open so that I can do the remote debugging from my host machine. I'm sure I'm missing out something crucial on what I've done already.
Am I heading towards a downfall? Any help could be appreciated.