I've done this to create a successful XP to iPhone ad hoc connection (I can CMD >> ping the iPhone by ip address), but I haven't gotten the iPhone proxy to work. Maybe someone else can verify. The below looks long, but it's easy to do:
EDIT: I never got this to work correctly with the socks proxy, but it works great now with tinyproxy. Tinyproxy is available through AppTapp, and it's so stinkin easy that I'm editing this post with tinyproxy use instructions.
To get tinyproxy, install AppTapp. Then on your iPhone, use the Installer to install the Community Sources, then install tinyproxy. No further configuration is necessary on your iPhone. I hope this is helpful. Sorry for the confusing multiple edits below :P
Get your Wireless Network Properties:
Go to Control Pannel >> Network Connections
Check to see that Ad Hoc Networking is Available:
"Wireless Network Connection" >> (Right CLick Menu) Properties >> (Tab) General:
- Connect Using: Click [Configure] to get the Network Card's Properties
When setting up any ad hoc Wi-Fi network the channel, ip range, and ssid will need to be the same for the computers to talk to each other
Under one of the tabs ("Advanced" on mine) there should be an Ad Hoc Channel setting that you should be able to modify. On my laptop, the default channel is 11, and this worked for me. Being that every computer and driver set could be different, you may want to check out
notebookforums.com, if this part doesn't come easily.
- Click [OK] - This will probably close all open properties windows.
Create the Ad Hoc Network:
"Wireless Network Connection" >> (Right CLick Menu) Properties >> (Tab) Wireless Networks:
Under Preferred Networks, click the [Add...] button.
(Tab) Association:
- Network Name (SSID): whatever you like ("adhoc", for example) Your XP computer will boradcast "adhock", and the iPhone will automatically pick it up, once you've completed this part.
- Network Authentication: Open
- Data Encryption: WEP
- Uncheck [x] The key is provided for me automatically.
- Network Key: any 5 digits you can remember that aren't easily guessed. Once you set up this ad hoc network, from now on your computer will always broadcast the ssid when your wireless card is turned on. Keep yourself safe with this key.
- Confirm Network Key: Not trying to tell anyone what to do here, but entering the same key as above is wise.
- Key Index: Leave it. Should be "1" by default.
(Tab) Connection:
- Checkbox [x] Connect when this network is in range: Check it.
Click OK to close "adhoc" Properties. Your ad hoc network is now created, but don't close the Wireless Connection Properties yet...
Set Your PC's IP on the Ad Hoc:
(Tab) General:
This connection uses the following items: Scroll to find "Internet Protocol (TCP/IP) on the list. Select it and click the [Properties] button.
- (Tab) General - Leave this as it is. This controls your regular Wi-Fi connection to your router when not on the ad hoc.
- (Tab) Alternate Configuration - filling this out will allow your pc to automatically choose this when on the ad hoc, so you'll never have to touch any of this again.
- Checkbox [x] User Configured: Check it.
- IP Address: create whatever ip range you like. In the first post of this thread, the ip range given was 10.3.3.x, so likely you'll want to fill in something like 10.3.3.7 here. Anything but your iPhone's address which will be 10.3.3.2
EDIT: to use tinyproxy in its default configuration, your PC's IP address should be 192.168.1.2 - Subnet mask: 255.255.255.0
- Leave the rest blank.
- Click OK to close TCP/IP Properties
Click OK to close your Wireless Network Connection Properties, and you're done with your PC. Your ad hoc network name will now show up as an available network for your iPhone to join.
Just to have it in one post... as originally posted above:
Set Your iPhone's IP on the Ad Hoc:
Now on your iPhone, go to Settings >> Wi-Fi >> (Menu) Choose a Network.
Your ad hoc network name will now show in this list. Select it, and tap the (>) arrow to get it's properties.
- IP Address: Static
- IP Address: 10.3.3.2 in this example
EDIT: using tinyproxy's default configuration, the iPhone IP should be set to 192.168.1.1 - Subnet Mask: 255.255.255.0
- Leave the rest unchanged.
Tap the arrow back to "Wi-Fi Networks", and you're done. The PC and the iPhone should now be on your spankin new ad hoc network.
Verify the connection on your PC by typing WinButton+R >> type
cmd and hit [Enter] >> At the command line type
ping 10.3.3.2 and hit [Enter]. This will send a simple network ping to the iPhone. Any result like "
Reply from 10.3.3.2: blah blah..." is good.
Another trick to check to see that you're on the network is to type at the CMD prompt:
ipconfig -- This will show all your active network connections and your PCs ip address on each of them.
Keep in mind that if your iPhone goes to sleep, it will remove itself from the network, and your ad hoc network will cease to exist. Change your iPhone's Auto-Lock timeout to keep this from happening.
EDIT: Configure Firefox to use your new ad hoc/iPhone/tinyproxy connection
If you haven't got Firefox already, do yourself a favor and install it. Make it your default browser. Pat yourself on the back for making the world a better place. install the SwitchProxy add-on
The browser will need a restart; when it's ready again, go to (Menu) Tools >> SwitchProxy >> Manage Proxies- Click (Button) Add
- [x] Standard: Check it and click [Next >>]
- Proxy Label: Enter what you want. I call mine "iPhone"
- [x] Manual Proxy Configuration: Check it.
- HTTP Proxy: 192.168.1.1
- HTTP Proxy Port: 8080
- Leave everything else the same. Click [OK] to finish adding your iPhone proxy.
- Click [OK] to close the Manage Proxies window.
You can now go to (Menu) Tools >> SwitchProxy >> iPhone whenever you're on your ad hoc network and want to use EDGE