Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > iPhone Developer Exchange

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-14-2009, 02:00 PM
111111
Status: Offline
Member
 
Join Date: Jun 2009
Posts: 50
Rep Power: 3
111111 is on a distinguished road
Default 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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-18-2009, 10:40 PM
111111
Status: Offline
Member
 
Join Date: Jun 2009
Posts: 50
Rep Power: 3
111111 is on a distinguished road
Default

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 09-19-2009, 02:32 PM
111111
Status: Offline
Member
 
Join Date: Jun 2009
Posts: 50
Rep Power: 3
111111 is on a distinguished road
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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



All times are GMT +2. The time now is 02:55 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105