Back connection refuse

Parrot OS having issue with back connection with python http bot. Ive tried that on windows it connected with out any issue. but when I tried it on Parrot OS apache . No connection send back to server. I tried same python http bot on windows it works well . I got the connection on web panel list.

When I ran payload.py directly on windows and set my server to parrot instead of windows , I was getting connection refused. message .

Althoug Ive given chmod 777 to see if there is any permission issue.

Regards