So I am very new to pen tests, and I have a server I set up quite a while ago.
I want to see the capability of Metasploit, but I keep getting this error when I execute the "exploit" command:
What's wrong?Code:[-] Exploit failed: Cannot assign requested address - bind(2)
like archangel.amael said, not enough info. Did you set the correct RHOST and LHOSTs? what exploit and payload are you using? are you sure the server is exploitable using said exploit?
I also don't see any evidence to suggest he hasn't followed the forum rules (other than maybe not searching before posting)
Find a basic usage guide for Metasploit on the Net or on the forums here and read that, and then read the Metasploit documentation - this should give you enough information to understand the basic usage of Metasploit. I think the most likely cause for your problem is that you haven't specified a local address or port correctly (LHOST or LPORT), but its hard to tell without more information about what you're doing.