Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

difference between sharing files using wifi direct and using wifi hotspot

Sharing files between two devices using wifi can be done by:

  • using wifi direct
  • creating a hotspot on one device and connecting other device to it
  • what is the basic difference between these two methods
  • I mean in the both the options one device serves as the access point while the other connects to it

  • which among the two devices will serve as the access point in case of wifi direct

  • which of the two options is easier and faster
  • I want to use this feature in my android app

    like image 349
    Gaurav Gupta Avatar asked Dec 05 '15 15:12

    Gaurav Gupta


    People also ask

    Is Wi-Fi Direct better than hotspot?

    Wifi is used between wireless devices and as an access point for interconnection. While the hotspot is created using an access point device that is connected to the router. Wifi provides high speed as compared to a hotspot in the case of multiple users.

    What is the difference between mobile hotspot and Wi-Fi sharing?

    WiFi-Hotspot allows all your other devices to connect to the Internet by sharing your phone's mobile data; while WiFi-Sharing achieves that by sharing your phone's WiFi connection.

    What is the difference between Wi-Fi and Wi-Fi Direct?

    So, to put it shortly, the main differences between Wi-Fi Direct and WiFi are that: WiFi Direct works directly between devices, without needing a router and a traditional wireless network. WiFi Direct doesn't give you access to the internet.

    What is Wi-Fi Direct sharing?

    Wi-Fi Direct (also known as peer-to-peer or P2P) allows your application to quickly find and interact with nearby devices, at a range beyond the capabilities of Bluetooth. The Wi-Fi Direct (P2P) APIs allow applications to connect to nearby devices without needing to connect to a network or hotspot.


    1 Answers

    One basic difference in usage is that if you use access point approach, any other access point can not be used same time, meaning that if user had existing connection through some access point, it will be terminated.

    Also if there are apps looking for internet connectivity, they might start pushing data as soon as you make a access point connection to the other device, which might pose some security issues (in case the other device has some sniffers ready for sensitive data etc.)

    With WiFi direct, there are no such things as access points, Basically you find a WiFi direct device, and start connection to it. With first creation of the WiFi Direct Group, there is dialog shows for accepting incoming connections (so its always shown in the party we are making the connection to).

    Then when the connection succeeds, one of then devices are chosen to be Group Owner, and any other devices wanting to join the group, should then make connections to the group owner only.

    With WiFi Direct API, you can also use CreateGroup, to pre-select one device to be group owner, This option would also create a Access point with random password.Thus if you want to go with Accesspoint option, you could use this feature for it easily.

    For the easier/faster questions, I would not have any good answers, I would suppose they probably are around the same.

    like image 67
    Dr.Jukka Avatar answered Sep 22 '22 06:09

    Dr.Jukka