beefproject / beef

The Browser Exploitation Framework Project
https://beefproject.com
9.62k stars 2.12k forks source link

127.0.0.1 refused to connect #1872

Closed herobrine30396 closed 4 years ago

herobrine30396 commented 4 years ago

Verify first that your issue/request has not been posted previously:

Ensure you're using the latest version of BeEF.

Environment

What version/revision of BeEF are you using? Browser Exploitation Framework (BeEF) 0.5.0.0

On what version of Ruby? ruby 2.5.7p206 (2019-10-01 revision 67816) [x86_64-linux-gnu]

On what browser? Firefox ESR

On what operating system? Kali Linux 2020.1 (VirtualBox Installation)

Configuration

I had not touched the configuration file.

Summary

I can access http://127.0.0.1:3000/demos/basic.html inside the Virtualbox, but I cannot access it from the Host machine or the other devices on the same Wi-Fi.

Expected Behaviour

The other devices' web browser should be able to open the page.

Actual Behaviour

The browser shows: This site can’t be reached 127.0.0.1 refused to connect.

bcoles commented 4 years ago

You can learn about about the local loopback interface here:

If you want to access BeEF running inside a virtual machine from the host operating system you'll need to use the IP address of the LAN network interface.

If you want to be able to access BeEF from other hosts on the LAN, you'll need to ensure the network interface is in bridged mode.