Discuss Change iPhone's wifi ip at the iPhone Developer Exchange - Hackint0sh.org; Hi, I can't understand how to change my wifi ip on my iphone 3G fw ...
-
Change iPhone's wifi ip
Hi, I can't understand how to change my wifi ip on my iphone 3G fw 3.0.1 from command line, because is always the same because of router's dhcp (192.168.1.20).
With my pc (192.168.1.10) if I wanna change the ip to 192.168.1.30 for example, I just give:
sudo ifconfig eth0 192.168.1.30
sudo route add default gw 192.168.1.1
but on the iphone only ifconfig seems to work:
route add default gw 192.168.1.1
says me
route: invalid mask: 192.168.1.1
route add default 192.168.1.1
says me
route: writing to routing socket: File exists
add net default: gateway 192.168.1.1: File exists
So I can change my iphone to 192.168.1.30 and connect with ssh to this new ip, but I can't connect to extern world: safari and others don't work; under Settings there's a sad 'No Wifi Connection'.
Anyone knows how to do? How can I make my wifi device fully work?
-
-
I found something interesting, commands like:
route -nv add -net 192.168 -interface en0
or
route -nv add 192.168.1.20 192.168.1.1
But I can't understand what is the right command I should give after:
ifconfig en0 192.168.1.21
..I simply want to change my iphone ip from 192.168.1.20 to 192.168.1.21 (should be used ifconfig, I think), and connect it to my router to have internet access, 192.168.1.1 (should be used route, I think). Any help?
-
-
Ok solved. Sorry but I never used OSX so I don't know iphone's commands very well...
To change IP to your iphone from 192.168.1.20 to 192.168.1.21, with router = 192.168.1.1, just try:
route delete default
ifconfig en0 192.168.1.21
route add default 192.168.1.1
I hope this will help someone else too. Bye
Similar Threads
-
By JN2 in forum iPhone 3GS
Replies: 6
Last Post: 10-20-2010, 01:10 PM
-
By shadow1988 in forum iPhone 3G
Replies: 1
Last Post: 08-02-2010, 05:45 AM
-
By san in forum iPhone OS 3.x
Replies: 0
Last Post: 09-07-2009, 09:52 AM
-
By klturi421 in forum Free Toolchain Software
Replies: 5
Last Post: 03-11-2008, 01:40 AM
-
Replies: 3
Last Post: 03-04-2008, 01:37 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks