GithubHelp home page GithubHelp logo

Comments (20)

prahladyeri avatar prahladyeri commented on June 13, 2024

hotspot is created n its showing on the phone but when i connect to hotspotd internet cannot be accessed.

Most probably, it seems to be an issue with iptables. Perhaps your new version of Kali is changing iptables internally so the hotspotd isn't able to mangle it. What is the output of iptables -L (in root)?
Also, what version of hotspotd are you using in the first place?

from hotspotd.

tycoon420 avatar tycoon420 commented on June 13, 2024

m using hotspotd 0.1.5 plus also tried hotspotd 0.1.4
n here is the screenshot of iptables -L
screenshot from 2016-02-22 02-19-36

from hotspotd.

prahladyeri avatar prahladyeri commented on June 13, 2024

If you are able to access internet on this machine, it may be an issue on the handset side. Did you check with multiple handsets/devices?

from hotspotd.

tycoon420 avatar tycoon420 commented on June 13, 2024

i tried connecting to the hotspot with 3 devices n still cant browse internet.

from hotspotd.

prahladyeri avatar prahladyeri commented on June 13, 2024

From hotspotd output, the connection is made between wlan0<->eth0. Are you sure eth0 is the interface that is used to access the internet? If not, then do an ifconfig to verify which interface are you using for browsing the internet. If it has changed, then run hotspotd with configure argument once to re-configure it.

from hotspotd.

tycoon420 avatar tycoon420 commented on June 13, 2024

i am using ethernet to access the internet.
here is Screenshot of ifconfig.
screenshot from 2016-02-22 03-31-54

from hotspotd.

prahladyeri avatar prahladyeri commented on June 13, 2024

In that case, there could be multiple issues, try these out one by one:

  1. Run rfkill list and make sure that wifi radio is not hard-blocked on your machine. If this command doesn't work, we are seeing a much bigger issue as hotspotd daemon uses rkfill internally to work.

  2. If rfkill/hardblock isn't the issue, then install the latest 0.1.6 version. I've added a few more debug messages that might help us troubleshoot the issue. Start hotspotd with this new version and let me know the output.

  3. If both the above points don't work, we may have to do a step by step debug. The daemon first starts dnsmasq for dhcp provisioning and then starts the hostapd. So, you will have to stop the hotspotd and run dnsmasq manually like this and see what errors it is giving:

    dnsmasq --dhcp-authoritative --interface=wlan0 --dhcp-range=192.168.45.20,192.168.45.100,255.255.255.0,4h

from hotspotd.

tycoon420 avatar tycoon420 commented on June 13, 2024

rfkill list command works well n the output is attached below
screenshot from 2016-02-22 03-56-55
i installed the new hotspotd 0.1.6v but same thing is happening. not able to access the internet on my both phones.

i didnt understand the 3rd point which u mentioned.Could u plz elaborate more precisely. sorry but m new to Linux.

when i write the command dnsmasq --dhcp-authoritative --interface=wlan0 --dhcp-range=192.168.45.20,192.168.45.100,255.255.255.0,4h
it gives an error saying already in use
screenshot from 2016-02-22 04-18-07

from hotspotd.

prahladyeri avatar prahladyeri commented on June 13, 2024

i installed the new hotspotd 0.1.6v but same thing is happening.

Even if same thing is happening, lets see its output after running it? I've added some additional things like the complete dnsmasq command and the hostapd parameters.

i didnt understand the 3rd point which u mentioned.Could u plz elaborate more precisely.

Well, debugging is a step-by-step procedure to find out where exactly the issue is in a complex program. But don't worry about that, after running the new version, just paste whatever output the script is giving and we will see from there.

from hotspotd.

tycoon420 avatar tycoon420 commented on June 13, 2024

here is the final output after running hotspotd 0.1.6
screenshot from 2016-02-22 04-23-36

from hotspotd.

prahladyeri avatar prahladyeri commented on June 13, 2024

k. Firstly, copy these two commands from the above console output and keep them in your text editor (they are second/third lines from the end):

dnsmasq --dhcp-authoritative --interface=wlan0......
hostapd -B /usr/local/lib/python2.7......

After that, Stop hotspotd first by running hotspotd stop and then run the above commands one by one, then state their output.

from hotspotd.

tycoon420 avatar tycoon420 commented on June 13, 2024

Bro here is the output of both the commands.
screenshot from 2016-02-22 04-37-18

from hotspotd.

prahladyeri avatar prahladyeri commented on June 13, 2024

Carefully run the below commands in su mode one by one and tell me which one of them works:

nmcli nm wifi off
nmcli radio wifi off

from hotspotd.

tycoon420 avatar tycoon420 commented on June 13, 2024

nmcli nm wifi off - not working
it gives error- Error: Object 'nm' is unknown, try 'nmcli help'.

nmcli radio wifi off -this one is working.

from hotspotd.

prahladyeri avatar prahladyeri commented on June 13, 2024

Well, I initially thought that inconsistency in nmcli command might be causing problem in your case, but turns out I've already fixed that before v0.1.5. In your case, there seems to be something hardware specific. If it was working earlier, then the newer Kali update might have introduced something that is causing this. One thing you can try is to stop the network-manager service in this manner before starting hotspotd:

service network-manager stop

This might help if the GNOME network manager is interfering with hotspotd. Other than that, I'm at a loss. Maybe these links might help you if you study them in detail:

http://nims11.wordpress.com/2012/04/27/hostapd-the-linux-way-to-create-virtual-wifi-access-point/comment-page-5/
http://askubuntu.com/questions/319838/failed-to-set-interface-wlan0-into-ap-mode-intel-centrino-n1000-wireless
http://askubuntu.com/questions/472794/hostapd-error-nl80211-could-not-configure-driver-mode

from hotspotd.

tycoon420 avatar tycoon420 commented on June 13, 2024

No prob bro u tried ur best and Thanks a lot for ur time n ur work . N yeah it was working like a charm in Kali Sana 2.0. Will try later, its 5am n got college from 9 am. keep up the good work n ur knowledge is immense would like to learn from u. thanks anyways. (Y).

from hotspotd.

prahladyeri avatar prahladyeri commented on June 13, 2024

No probs. The trick of fixing things in linux is just to stick to it. It might take a hundred more attempts, but if you learn it this way, the learning will be ingrained in you and make you a better developer. If you just do apt-get install <package>, it might work, but you will never know how the stack works at the lower levels. Anyways, all the best for your studies.

from hotspotd.

RRibbon avatar RRibbon commented on June 13, 2024

hi everyone..

i had a issues when i start hotspotd

im already configure ip address,passwrd,also ssid,everything is fine..

i connected with the hotspot,

and here's the problem

1.when hotspotd turn on,my pc automatically turn of wifi connection,so my phone cannot connect to the internet because of that.

2.what shoud i do?
if anyone could help me,what should i tell to you,maybe i should check something to clear this problem?

btw im newbie,thanks-

from hotspotd.

prahladyeri avatar prahladyeri commented on June 13, 2024

Closing as there has been no activity.

from hotspotd.

SysSn13 avatar SysSn13 commented on June 13, 2024

I has set up the hotspot and other devices are showing this Pc's name after wifi network searching but even a single device is not able to connect to this network. Btw I'm using Kali Linux. Please help.....

from hotspotd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.