Welcome, Guest. Please Login.
Linuxslate.com Forums

<=== Back to the Linuxslate.com Homepage

Mar 26th, 2017, 1:46pm
News: Welcome to the linuxslate.com forums. 16 Janruary 2015: Forum registration has been disabled due to recent advancements in bypassing captcha's and the resulting increase in spam on the forums. Registration will be re-enabled at a later date. In the meantime, if you need to register, or have relevant information, please email "john" at this domain, or request an account using the linuxslate.com Google+ Page: https://plus.google.com/+Linuxslate/


Pages: 1
WiFi Tethering to an iPhone (Read 14665 times)
Administrator
Forum Administrator
*****


Administrator

Posts: 122
Gender: male
WiFi Tethering to an iPhone
Jul 10th, 2008, 9:29pm
 
WiFi Tethering to an iPhone
 
Notice:  What follows may violate your Terms of Service with your Wireless Service Provider.  The following settings seem to work, but need more experimentation.
 
   1. The iPhone must be Jailbroken.  Covering that is beyond the scope of this article. I am not suggesting that you do or do not jailbreak your iPhone, Be sure you fully understand the implications of doing so before you jailbreak your iPhone.
   2. iPhone:  Launch installer and search for Tinyproxy. Install it.
   3. Wibrain: Launch Firefox.  Select Edit -- Preferences -- Advanced. Select the Network tab. Next to "Configure how Firefox connects to the Internet", click on Settings. On the Connection Settings box, select  Manual proxy configuration.  Set the following settings: HTTP Proxy: 192.168.1.1     Port: 8080     Leave the other settings as they are (mostly blank).  Exit Preferences.
   4. Wibrain: Turn on WiFi, and insure that Enable Wireless is on in Network Manager.  Choose Create New Wireless Network.
   5. Wibrain: Terminal: sudo ifconfig eth0 192.168.1.2  netmask 255.255.255.0
   6. iPhone: Launch Settings.  GoTo WiFi.  You should see a new network called "B1L" (This will be different if you changed your Wibrain's host name, or you gave your network a different name).  Join this network.  Select the settings for this network (the blue button). Select Static, and assign the address 192.168.1.1, and the Subnet mask 255.255.255.0  Warning: anyone nearby can also join this network.  I recommend using WEP or WPA, but when I tried this it still seemed to create an open network.
   7. Wibrain: Firefox:  Try surfing some websites.  
   8. Note that Network Manager seems to not realize that it is connected, and may drop the connection. Also, if the iPhone goes to sleep, your network will fall apart.  Set Lock Screen to Never on the iPhone.
 
Back to top
 
 

Mobile Linux ?
Got That:
Z1 Android Watch Phone, Huawei Honor 2, Nexus 7 (2013), MUCH G2.
WWW   IP Logged
Administrator
Forum Administrator
*****


Administrator

Posts: 122
Gender: male
Re: WiFi Tethering to an iPhone
Reply #1 - Jul 29th, 2008, 3:09pm
 
WiFi Tethering to an iPhone
 
More Reliable Method.  Assumes Ubuntu 8.04.
 
Notice:  What follows may violate your Terms of Service with your Wireless Service Provider.  The following settings seem to work, but need more experimentation.
 
One time Pre-configuration:
 
   1. The iPhone must be Jailbroken.  Covering that is beyond the scope of this article. I am not suggesting that you do or do not jailbreak your iPhone, Be sure you fully understand the implications of doing so before you jailbreak your iPhone.
 
   2. iPhone:  Install Terminal. (Term-VT-100).
 
   3. Wibrain: Launch Firefox.  Enter the following in the URL bar:
 
about:config
 
In the resulting display, there will be a Filter field. Enter:
 
dns
 
There will be an entry like:
 
network.proxy.socks_remote_dns              boolean    false
 
Toggle it to true by clicking it.
 
   4. Wibrain: Firefox: Preferences >> Advanced >> Network >> Connection >> Settings >> SOCKS Host: Enter:  
 
192.168.1.1         port:   1080
 
Do not select "Manual Proxy configuration" until you are ready to connect via your iPhone.
 
 
 
Each time you connect:
 
1.  Wibrain: Open a terminal.  Do:
 
sudo  iwconfig eth2 essid myadhoc mode ad-hoc channel 9 key s:12345 ap any
 
The name of the adhoc network we are creating, myadhoc, in the above example and the key, 12345, in the above, can be changed as desired.  Do:
 
sudo ifconfig eth2 192.168.1.2 netmask 255.255.255.0
 
"eth2" above may be eth0 or eth1.  It is whatever your
Wibrains Wifi is normally.  
 
2.  iPhone: Settings: WiFi:  You should see the adhoc network we just created.  Connect to it.  The first time we do this, we will need to enter the WEP key we assigned above. Also, one time only, we must tap the blue circle, and set:  IP Address Static, and enter IP Address 192.168.1.1, and Subnet Mask 255.255.255.0. You may also want to set the iPhone so that it does not go to sleep.
 
3.  iPhone: Launch Terminal. Do:
 
srelay
 
4. Wibrain: Firefox: Preferences >> Advanced >> Network >> Connection >> Settings >>  
 
Select Manual Proxy Configuration
 
(Should have the SOCKS settings we entered previously).
 
Try surfing.
 
More hints:  
 
-  It may be possible for the iPhone and the WiBrain to be too close together.  Remember this is WiFi, not Bluetooth.
 
-  Try "Waking up" the connection by going to a website in iPhone Safari.
 
 
qw
Back to top
 
 

Mobile Linux ?
Got That:
Z1 Android Watch Phone, Huawei Honor 2, Nexus 7 (2013), MUCH G2.
WWW   IP Logged
Administrator
Forum Administrator
*****


Administrator

Posts: 122
Gender: male
Re: WiFi Tethering to an iPhone
Reply #2 - Aug 7th, 2008, 8:46am
 
Here's a small script to automate the creation of the Ad-hoc network.
Code:
#! /bin/bash

iwconfig eth2 essid myadhoc mode ad-hoc channel 9 key s:12345 ap any
ifconfig eth2 192.168.1.2 netmask 255.255.255.0 


 
Put this in a file called, for example, "mkadhoc", and make it executable.
 
Then just do (for example):
 
Code:
./mkadhoc 


 
and the adhoc network will be created.
Back to top
 
 

Mobile Linux ?
Got That:
Z1 Android Watch Phone, Huawei Honor 2, Nexus 7 (2013), MUCH G2.
WWW   IP Logged
Pages: 1