Kali IP Issue

Discussion in 'Linux Networking' started by worthingtonclinton, Feb 19, 2014.

  1. I'm trying to connect to my IP through an internet browser so I can harvestsome data and send it back to myself as a test as well as learning purposes. Every IP I try (,, as well as my outward facing IP) my browser keeps returning that it cannot connect to this address. It's driving me crazy. Can someone school me on why this might be happening and possible solutions? It would be greatly appreciated.
    worthingtonclinton, Feb 19, 2014
    1. Advertisements

  2. worthingtonclinton

    Jorgen Grahn Guest

    We don't know your networking setup, so helping is difficult.
    Do you mean you're working on a specific Linux machine, and
    trying to access it using addresses you know it has?

    Some things to try (assuming A is such an address, and that you want
    to talk to a web server on the machine):

    % ping A
    % nc A 80
    # netstat -tapn | grep -w 80
    # iptables -vL

    Jorgen Grahn, Feb 19, 2014
    1. Advertisements

  3. What are those IP addresses? Also if they are supposed to be the
    addresses of your own machine, you would have to be running an http
    server (apache) in order for your machine to respond to http requests.
    (ps auxww |grep http
    should show you whether or not an httpd server is running)

    But this probably is not what you wnat anyway. For transferring data,
    use programs such as scp, rsync.
    William Unruh, Feb 19, 2014
  4. Yes Jorge, I am trying to access an address I know it has from a web browser. (ex. Kali Linux is installed and running on Oracle's VM VirtualBox. I'm running Windows 8 the same computer. On Kali, I'm using a program that takes your IP as an input, then a web address. Kali then clones the website, and when I access the website and click on the link I created in the messages section of the website (my computers IP) it will phish for certain info and return it within the program. Kali's shell tells me my IP is Windows cmd returns for my IP. Those alongwith my outward facing when used as a url in http format all, after a delay, display a cannot connect error. Thanks guys, I'm going to try all of your suggestions and will let you know what happens.
    worthingtonclinton, Feb 19, 2014
  5. The default settings for a vb guest is to use nat routing, where vb
    itself acts as a router. Since it's using a different subnet, the host
    and guest cannot access each other.

    Given the host has an ip address starting with 192.168, the host is
    connecting to a router, which is most likely using dhcp to assign
    the address.

    Change the settings for the vb guest to use a bridged connection,
    which will allow the guest to get it's address, via dhcp, from the
    same router, so it will be in the 192.168.1 subnet.

    If you're using static ip addresses, the network config in the guest
    will have to be changed to also start with 192.168.1.

    The host and guest should then be able to access each other, provided,
    they are not being blocked by firewalls.

    Regards, Dave Hodgins
    David W. Hodgins, Feb 19, 2014
  6. Dave, it worked!! You are the man. Thanks a bunch.
    worthingtonclinton, Feb 20, 2014
  7. Setting up a bridged network worked perfectly
    for my local network!

    Next I would like to be able to receive data
    from someone outside my network.

    I sent my friend my outward facing IP as a link
    and when he tried accessing it, we encountered
    the dreaded 'cannot connect' from the internet

    What can I do as far as creating a link that
    sends data from an outside computer to my
    apache server?
    worthingtonclinton, Feb 20, 2014
  8. Possibly port forwarding within my routers admin panel?
    worthingtonclinton, Feb 20, 2014
  9. worthingtonclinton

    moezzee Guest

    to get the data on on your friends computer you'll have to port forward the80, and for you info, the server has a very short range so nobody from outside your country, heck your city would be able to see the page
    moezzee, May 6, 2014
  10. It depends on where you are. Addresses like 192.168. or 10. are
    non-routable on the outside net. There are about 100000 of each of these
    addresses assigned around the world, and which of those should the
    system connect to? routers will simply throw them away, unless you are
    on exactly the same network they are on. Thus if you are not, you cannot
    get there from here.
    Your outward facing IP is just that an IP. Unless it is on your
    computer, rather that on the modem/switch/router, the computer inside
    that has no idea what to do
    with a packet it gets for port 80. You have to tell the router wnat to
    do. That is called port forwarding.

    Finally, the firewall has to let packets addressed to port 80 through--
    either on the router and on your computer, and your computer has to have
    something (eg apache) listaning to port 80.
    William Unruh, May 7, 2014
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.