New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Metasploit handler Error " fail to bind ..."
Hello I am interested in metasploit exactly in pentration test over internet wan , I have a friend in other country we gave permission to each other to do pentration tests on our pcs , any way when I configure handler to my public ip and port 4224 it say failed to bind < public ip > : 4224 , so where is the problem anyone can give special solution to this problem , my configure in router good with forwarding , also no other service using that port , and firewall disabled. Please help me with sulotion and what are the right router configuration for metasploit too

Comments
If you're binding the Metasploit Handler to your external IP, whilst port forwarding from your router to the internal IP that isn't going to work. Try binding to the internal IP address, (192.168.1.2 or whatever), and see if that works. The router will then forward incoming traffic to Metasploit from your external IP to the internal IP and then you'll get your shell
As CloudHopper said, the only IP you can bind is the one the computer is configured, so use your lan address, and the port will be forwarded from router wan.
But since you're behind a nat, you can just bing the LHOST to '0.0.0.0'. Test if the port is connecting using netcat.