That was the solution for me @everyone still struggling with that problem!
Worked like a charm
I had this issue.I am glad to take part in the party. I have solved this issue.I think you just change the wrong ip in the php-reverse-shell.php .In the beginning my atack box ip is 10.17.118.1.But I change it into 10.10.118.1. Sorry for my poor English。
For the newer htb I had reverted to a different php reverse shell which worked:
Today I wasted all my day applying al kind of things and still getting the same mistake someone has some solution that really work?