3

I wanted to know if it is possible for a smartphone with hotspot capabilities (such as some Android devices) to act as a Wi-Fi router.

Basically, the setup would be something like :

                 Internet
                    |
                Smartphone 
              /     |      \
Wireless Drive   Computer   Wireless Printer

The idea behind this is to be able to access the Printer, the Drive, and Internet with the Computer only being connected to the Smartphone via Wi-Fi.

I have no good knowledge about networks, so pardon me if my question sounds stupid.

Thanks

2
  • Most phones support being put into this mode. I know Windows Phone, iOS, and Android both have this feature out of the box. Of course the Internet would be your mobile broadband not cable/dsl connection. – Ramhound Feb 24 '15 at 13:49
  • My question seems to be off-topic. However, as I read from the help center: Super User [...] is not about [...] electronic devices, media players, cell phones or smart phones, except insofar as they interface with your computer. – Ahmed Guellil Feb 26 '15 at 21:16
5

You have lots of articles that covers this topic. WiFi Tethering essentially turns your smartphone into a wireless router. When your phone has a data connection, it can share that connection with all of the other devices connected to it. When it doesn’t have a data connection, it still functions as a wireless router – or more accurately, as a switch.

Since you didnt specify smartphone that you want to use, I will list you some articels you should consider

2
  • There is a lot of articles that covers the fact of a smartphone sharing access to the Internet with a computer, not so much about how a computer and a wireless drive being connected to the same access point can exchange data. However, the first article you mentioned is news to me, and it states that the connection between two devices attached to the same wireless hotspot can exchange data seamlessly. It didn't happen for me, as my computer was unable to show files from my wireless drive in the network folder. Hardware used : LG G2 (Android Stock), Computer (Ubuntu 14.04), Seagate Wireless Plus – Ahmed Guellil Feb 24 '15 at 14:47
  • My bad... The issues I've been experiencing when trying to connect to my Wireless Drive were due to its file server who was deactivated. – Ahmed Guellil Feb 25 '15 at 15:47
1

Indeed, it seems like a smartphone with a "Hotspot" feature can act as a Wi-Fi router.

After doing some research, as far as I understand, the network I've been asking about works as follows :

                         Internet
                            |
                  (external IP address)
                       Smartphone
                      [file server]
                  (internal IP address)
                  /         |          \
     (IP address)      (IP address)      (IP address)
    Wireless Drive       Computer       Wireless Printer
    [file server]     [file client]      [print server]
                      [print client]

The important thing is that each device must have a server running for the Computer to be able to use it.

I found some useful Linux commands along the way :

netstat -rn gives you the internal IP address of the Smartphone under the "Gateway" column.

ifconfig gives you IP address of the Computer itself connected to the Smartphone, in the "wlan" section.

ip neighbour gives you IP addresses of the other devices connected to the Smartphone.

IP addresses can be used to gain access to a device's features from a client, using the syntax protocol://ip_address.

I hope this will help someone.

Not the answer you're looking for? Browse other questions tagged or ask your own question.