The Brainliest Answer!
For this u need a phone that is havin wifi and a wifi modem
if u r having these things then
go in the wifi settings of ur mobile and turn it onĀ 
the it will detect ur modem then press on that and u will get connected
2 3 2