shahine.com/omar/

homepage | Send mail to the author(s) contact

yet another Microsoft blogger

# Friday, August 01, 2008

How to tether your iPhone to Vista in 5 easy steps

Here are some very easy steps for how to tether your Vista laptop to your iPhone.

First you need to get the following pieces of software:

  1. NetShare – this is an iPhone application that bridges your 3G and WiFi radio on the iPhone and creates a SOCKS proxy for your PC. Apple has been publishing and removing this application over the past day, so it might not be available in the Apple Store. Sorry!
  2. Proxifier Standard – this is a Windows application that routs all internet traffic on your laptop to your iPhone via the ad-hoc wireless network.

Here is how it works:

[Internet] <-> [3G <-> iPhone running NetShare] <-> Wifi <-> [SOCKS PROXY <-> Vista]

Step 1: Install NetShare and Proxifier

This is easy, install NetShare on the iPhone, and install Proxifier on your laptop.

Step 2: Create an ad hoc wireless network

On your laptop go to the Network and Sharing Center and click Set up a connection or network

image

Select Set up a wireless ad hoc (computer to computer) network

image

Give it a Network name (I use iPhone) and set the Security type to No authentication (Open) and click Save this network

image

note: I plan to test this later using WPA2 Personal since that is far more secure.

Now you are connected to your ad hoc network. In the future you can re-connect to this network by going to the Start Menu and clicking Connect To and then selecting iPhone.

image

Step 3: Connect your iPhone to the ad hoc wireless network you just created

On your iPhone go to Settings select Wi-Fi and connect to iPhone (or whatever you called the ad hoc network in step 2). Your connection should look like this:

IMG_0012

 

Don’t worry about the IP address , we are going to use a feature called Automatic Private IP Address or Zero Config Networking which will allow iPhone and Vista to talk to each other even though they don’t have a router.

Step 4: Launch NetShare

Now that you have connected your iPhone to the iPhone ad hoc network you should launch NetShare. When you’ve done that you will be greeted with this screen:

IMG_0011 

Step 5: Launch and configure Proxifier

You’re almost done!

  1. Now launch Proxifier and select Proxy Settings… in the Options menu.
  2. Click the Add button and type the Proxy IP address in the NetShare application on the iPhone (169.254.206.139 in my case)
  3. Enter Port 1080
  4. Select SOCKS Version 5
  5. Click OK

image

Step 6: You are done!

If you want to make sure that it’s working you can select the proxy entry you just created and click Check

image

and go to speedtest.net and measure your performance!

303816263

Step 7: Cleanup

When you are done tethering, you should do the following:

  1. Disconnect from the iPhone ad hoc network
  2. Select Exit from the File menu in Proxifier. If you don’t do this it will continue to run preventing your normal Wifi connection from working.

Notes

  • I found that Outlook would not connect to our corporate Exchange server via HTTPS, it was trying TCP/IP. I suspect this is some kind of problem with the SOCKS proxy server. To remedy the problem I forced Outlook to use HTTPS on Slow and Fast connection.
  • The iPhone will go to sleep while the NetShare app is running. You need to periodically wake it up.
  • the above wireless configuration is an Open network. I plan to test this using something more secure like WPA2.

 

Friday, August 01, 2008 9:46:13 PM (Pacific Daylight Time, UTC-07:00)
Did Apple pull the NetShare app? I can't locate it in the appstore? Hmm?
John Walker
Friday, August 01, 2008 9:56:12 PM (Pacific Daylight Time, UTC-07:00)
It's been up and down twice today. I was able to purchase it today at 1pm PDT.
Saturday, August 02, 2008 9:30:26 AM (Pacific Daylight Time, UTC-07:00)
What's this for though? I don't understand.
Paul Phillips
Saturday, August 02, 2008 10:41:39 AM (Pacific Daylight Time, UTC-07:00)
Hoping NetShare comes back again on the App Store after the second "pull" by Apple. This would be very useful, for sure.
Saturday, August 02, 2008 12:01:42 PM (Pacific Daylight Time, UTC-07:00)
Is spending the $40 on proxifier really needed for using most apps? Can't this just be set in the proxy settings for the individual app?
EdH
Saturday, August 02, 2008 6:07:54 PM (Pacific Daylight Time, UTC-07:00)
I tried this using an original iPhone and didn't have any luck. I was able to set up the network and connect the iPhone to it, and could ping the iPhone from Vista, but after setting up Proxifier and running the "check", it failed.
Saturday, August 02, 2008 6:19:17 PM (Pacific Daylight Time, UTC-07:00)
@Paul -

This will allow you to use your iPhone as a modem for your PC. So if your PC doesn't have a broadband card and there's no Wifi access available, you can use your iPhone's data connection to get to the Internet from your PC.

Matt
Saturday, August 02, 2008 7:03:02 PM (Pacific Daylight Time, UTC-07:00)
@EdH as far as I know, Windows doesn't have any native support for SOCKS5 proxy (while the Mac OS does).

If NetShare were able to emulate a normal HTTP proxy server it might work, but only for HTTP traffic.

SOCKS can take all internet traffic and route it.
Saturday, August 02, 2008 9:04:46 PM (Pacific Daylight Time, UTC-07:00)
Thanks for putting this out there Omar. I'm in the same situation as Josh although with a new Iphone 3G. I create the ad hoc network and connect the Iphone but the proxifier check fails. I can ping the Iphone's IP address but when I try to ping a domain name, my laptop pings 127.8.0.x (google was .1, yahoo was .2, and MSN was .3) The pings look as though they were successful with no lost packets and times < 1 ms but obviously that's not right. Any ideas?
Derek W.
Saturday, August 02, 2008 9:47:03 PM (Pacific Daylight Time, UTC-07:00)
I'm exactly at the same point as Josh and Derek. Omar - any suggestions? Has anyone actually gotten this to work correctly? Thanks for any help.
dave
Sunday, August 03, 2008 5:48:13 PM (Pacific Daylight Time, UTC-07:00)
These instructions worked for me! using XP
Matt
Monday, August 04, 2008 3:09:05 PM (Pacific Daylight Time, UTC-07:00)
Well folks, this doesn't seem to work very reliably.

I just tested again and it took me 3 attempts to get things working. In cases where the "Check" succeeded I still was not able to connect to the net.

I found that plugging in the iPhone to a power source helped a lot. Not sure why.

Also, you'll know things are working if the Proxifier application is spewing out informaiton in it's log and showing connected applications in the main window.

I'm not sure what the exact "trick" is to make it work right off the bat, but it seems that some tweaking is needed to make things work.
This comment has not been screened by an external service.
Monday, August 04, 2008 4:12:16 PM (Pacific Daylight Time, UTC-07:00)
Thanks for posting this! IT worked for me.
PHil
Tuesday, August 05, 2008 9:08:21 AM (Pacific Daylight Time, UTC-07:00)
I believe it has to do with the ipv4 autoconfiguration that Vista uses. I tried to get this set back up today and it would not work. This is how I got it working again:


There is only 2 commands need to be execute in the cmd window:


1) C:\>netsh interface ipv4 show interface <enter>


Idx Met MTU
--- --- ----- ----------- -------------------
1 50 4294967295 connected Loopback Pseudo-Interface 1
8 20 1500 connected


then find which is your network card ldx number, there is '8' , then,


2) C:\>netsh interface ipv4 set interface 8 dadtransmits=0 store=persistent <enter>


Then disable and renable the network.


Brett
Thursday, August 07, 2008 5:41:36 AM (Pacific Daylight Time, UTC-07:00)
hi i have tried all the possible steps but am still not succesful in getting it to work

pls can i get some help
ness
Thursday, August 14, 2008 1:44:53 AM (Pacific Daylight Time, UTC-07:00)
i tried to do this and it failed... so i tired what Brett said to do in cmd. With admin privileges in cmd, i successfully did this and it worked!
jacob
Thursday, August 14, 2008 1:45:22 AM (Pacific Daylight Time, UTC-07:00)
by the way... i did the cmd thing WITH the guide above.
jacob
Tuesday, October 14, 2008 4:04:44 PM (Pacific Daylight Time, UTC-07:00)
You can do this without the proxy application,

Vista's Internet Connection Sharing (ICS) service allows you to share out the "Internet Facing" network device, (whether it be a 3G card or the Ethernet NIC.)
Create an AD-Hoc wifi connection on your laptop and connect the Iphone to this. THe Iphone will pickup a DHCP lease from ICS and away you go.

However I cant get WPA working with the IPhon, only WEP (which isn't cool). Has anyone done an adhoc connection between Vista and Iphone using WPA2?
Tristan
Saturday, March 21, 2009 12:47:49 PM (Pacific Daylight Time, UTC-07:00)
I couldn't get this to work because the name resolution was failing. The fix was simple:

In Proxifier, select Options->Name Resolution. Change from "Choose the Mode Automatically" to "Remotely".

Comments are closed.