WEP Ad hoc wireless support?

51 views
Skip to first unread message

Ron F

unread,
Jul 6, 2007, 9:54:11 PM7/6/07
to iPhoneWebDev

Has anyone successfully joined the iphone with an adhoc wireless with
WEP (completely broken (40bit), or fairly broken (128bit)), say hosted
on a macbook?

I've tried, but it repeatedly but it only works with WEP disabled...
Sitting here at the conference at adobe, thinking that an adhoc
wireless would be good for testing against pages hosted on my macbook.

Cheers,
Ron

Joe Hewitt

unread,
Jul 6, 2007, 10:53:09 PM7/6/07
to iPhoneWebDev
Yeah, I'm at iPhoneDevCamp and that was the first thing I did when I
opened my computer. Create the "Computer to Computer Network", and
then on your iPhone click the arrow next to the connection and go to
Static IP, enter your computer's IP address in the Router and DNS
fields, then make up a static IP for your phone.

Ron F

unread,
Jul 6, 2007, 11:37:34 PM7/6/07
to iPhoneWebDev

Okay, well, I am officially stumped, despite your kind instructions. I
am sure I am doing something quite daft.

If you find yourself with a few minutes to help me out, I am sitting
in the first position to the right of the twitter camp screen --
Bright yellow shirt, backwards SignaCert cap on.

Cheers,
Ron

den...@gmail.com

unread,
Jul 7, 2007, 2:05:21 AM7/7/07
to iPhoneWebDev
I ran into both issues in getting my MacBook -> iPhone wireless setup
going.

WEP:
Setup the macbook internet sharing and give it a regular alphanumeric
password. Ignore the apple recommendation in the dialog to use 5/13
character passwords for 40/128bit WEP, as that causes my iphone to
issue a connection error due to invalid password. I was able to get
it working with "password" and "passwd" which was good enough for my
local testing purposes. On the iphone, enter the password normally
(which is the default), not in the hex/ascii mode.

DNS:
The above should let you see your laptop on its local IP so you can
develop locally. But you most likely won't be able to get to outside
web pages due to DNS lookup failure. For some reason the DHCP doesn't
issue the DNS server. On your iphone, change the WiFi connection
settings from DHCP to static. You can keep whatever values it carries
over from the DHCP settings. Now just add your DNS IP and you're all
set. If you don't know it, you can get it from your laptop's terminal
by running 'dig'. It is towards the bottom in the "SERVER: ..." line.

laptop.local vs IP:
I couldn't get the iphone to recognize my laptop w/ its name.local
string and instead had to enter in the IP directly.

Reply all
Reply to author
Forward
0 new messages