G1 using mobile phone wifi to connect to laptop WiFi shared broadband Internet access

Source: Internet
Author: User

Source: http://www.hiapk.com/bbs/thread-10894-1-1.html

Http://www.androidin.net/bbs/viewthread.php? Tid = 15441 & from = favorites

 

We are particularly grateful to William blade for his post as the basis for implementing this function !! Thanks to G1 KENT (QQ: 170962757 )!!

See his post "g1 WiFi point-to-point connection laptop ad-hoc"

Http://www.hiapk.com/bbs/viewthread.php? Tid = 10320 & Highlight = WiFi

 

Prerequisites: your computer has a common Nic and a wireless Nic.

 

1. Open the Super Terminal (release the write permission for the file)

Enter su press ENTER

#

Enter Mount-o rw, remount-T yaffs2/dev/block/mtdblock3/system and press ENTER

[Mount empty-O [not null RW, remount empty-T empty yaffs2 empty/dev/block/mtdblock3 empty/system]

Note:

A. Unplug the data cable.

B. Be brave and enter the code segment correctly. Pay special attention to spaces.

C. After you press enter, it only appears. # It indicates that the code is successful. If any code appears, it means that it is not successful. Enter the code again.

D. If no content is displayed after #, it indicates that the program is successful, and then the Super Terminal Program is exited.

 

2. Go to/system/etc/WiFi/and modify the tiwlan. ini file.

(You can also directly download and overwrite)/files/shenhaocn/tiwlan.rar (overwrite to the/system/etc/WiFi directory)

1 // search for the following line in the editor
2 wifiadhoc = 0
3 // change to wifiadhoc = 1 and Add the following two lines to the end:
4 dot11desiredssid = htcg1
5 dot11desiredbsstype = 0
6 // This SSID htcg1 is the point-to-point ad-hoc name of my laptop, which should be modified as needed.
7 // last modified and saved the file

3. Enter/data/MISC/WiFi/and modify the wpa_supplicant.conf file.

/Files/shenhaocn/wpa_supplicant.rar (directly overwrite it after download)

 

1 // then we need to modify a file/data/MISC/WiFi/wpa_supplicant.conf
2 // we need to add the following lines to this file:
3
4 network = {
5
6 SSID = "htcg1"
7 key_mgmt = none
8 mode = 1
9
10}
11 // Save the disk and exit
12 // Where 'mode = 1' indicates that htcg1 is an ad-hoc Network
13

 

 

In addition, please note: wpa_supplicant.conf will not be visible here after the Rom is refreshed.

Please switch the Wi-Fi connection once and wait for the system to automatically generate wpa_supplicant.conf and then overwrite it!

 

After completing the above operations, turn on the mobile phone WiFi function and enter the WiFi settings to see the g1damo hotspot.

If you don't see it, you can restart your phone once.

 

4. Next, set it on the computer [take XP as an example]

Enable local computer connection

A. Set a wireless network card.

Right-click wireless network card and select Properties

Double-click TCP/IP protocol

In the IP address column, enter

IP: 192.168.0.1

Subnet Mask: 255.255.255.0

 

B. Set the bandwidth connection to share.

Right-click the local connection, and select the connection that allows your computer to access the Internet.

Go to advanced options

Select the ones that allow other network users to connect to this computer as shown in the figure.

You must connect to your mobile phone from your computer !!

In general, if the computer is set to normal, the system will immediately prompt that it has been connected to g1damo!

Success !!!

 

How to Use the root Explorer software to copy files!


1. Enter the Super Terminal (refer to the first page of this post) to release the file write permission, that is, enter

Mount empty-O [not zero] Empty RW, remount empty-T empty yaffs2 empty/dev/block/mtdblock3 empty/System

2. Download tiwlan. ini and wpa_supplicant.conf to the SD card, create text in the same directory, and copy the following content: (this is for later devices to view this post without going online)

/Data/MISC/WiFi/wpa_supplicant.conf

/System/etc/WiFi tiwlan. ini

3. Open root explorer. If any prompt is displayed, click always. Replace the above two files (please read this step ).

4. turn on and off the WiFi and you will be able to see the g1damo hotspot.

5. The laptop wireless network card scans the wireless signal and you can see g1damo (On-Demand connection). Click Connect to connect to each other.

6. perform a test on the Google webpage.



COMPUTER:

IP adress: 192.168.0.1

Subnet Mask: 255.255.255.0

Default Gateway: 192.168.0.1

Prefered DNS: 192.168.0.1

 

Phone:

IP adress: 192.168.0.2

Gateway: 192.168.0.1

Netmask: 255.255.255.0

DNS 1: 192.168.0.1

To change IP settings on phone go to wi-fi settings and then press menu key and select Advanced.

There You must select to use static IP and configure it like me.

 

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.