Results 1 to 3 of 3
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 ...
  1. #1
    Professional Array

    Join Date
    Jun 2009
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    7

    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?



  2. #2
    Professional Array

    Join Date
    Jun 2009
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    7

    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?

  3. #3
    Professional Array

    Join Date
    Jun 2009
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    7

    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

 

 

Similar Threads

  1. How can I change 3gs wifi MAC address?
    By JN2 in forum iPhone 3GS
    Replies: 6
    Last Post: 10-20-2010, 01:10 PM
  2. Help - How to change the iPhone 3G wifi antenna?
    By shadow1988 in forum iPhone 3G
    Replies: 1
    Last Post: 08-02-2010, 05:45 AM
  3. WiFi doesn't work properly on iPhone 2G after battery change
    By san in forum iOS 3.x (iPhone OS 3.x)
    Replies: 0
    Last Post: 09-07-2009, 09:52 AM
  4. [Req] View and Change iPhone files without Wifi
    By klturi421 in forum Free Toolchain Software (Cydia App's)
    Replies: 5
    Last Post: 03-11-2008, 12:40 AM
  5. Replies: 3
    Last Post: 03-04-2008, 12:37 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 06:49 AM.
twitter, follow us!