|
|||||||||
|
|||||||||
|
|||
|
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 |
| Sponsored links Remove advertisements | |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wifi Grey and Bluetooth seems to be broken | regsnerven | Hardware Unlock | 2 | 10-12-2009 04:29 AM |
| [WinPwn] cannot connect to any WiFi ! | RedLava | PwnageTool | 25 | 05-04-2008 05:47 PM |
| [WinPwn] wifi woes - cannot connect to any WiFi ! | RedLava | PwnageTool | 14 | 04-21-2008 08:32 PM |
| UK iPhones :: £299 :: 24ct gold plated iPhones :: £359! | BeSEnt. | Flea Market | 0 | 03-09-2008 01:48 PM |
| Intermittant Wifi is Driving Me Crazy | slevytam | General | 4 | 11-19-2007 10:29 PM |
|
|