Results 1 to 2 of 2
Discuss Proxyserver on Interface pdp_ip0 at the iPhone Developer Exchange - Hackint0sh.org; Hello, I have a question... It is for my iPhone 4S (iOS 5.1.1 with JB) ...
  1. #1
    Newbie Array

    Join Date
    May 2012
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Question Proxyserver on Interface pdp_ip0

    Hello,

    I have a question...
    It is for my iPhone 4S (iOS 5.1.1 with JB)

    For the interface pdp_ip1 (3G) you can set a proxy in the "preferences.plist".

    This is working ell for the most apps, but when I take a look in the WhatsApp logs, I see, that it chooses the pdp_ip0 Interface.
    WhatsApp try to connect, but the connection timed out, because it seems to use the wrong interface.

    This is shown in the WhatsApp logs:

    Code:
    LL_N en0: flags=8863 < up ptp multicast > | Link addr=c4:2c:03:5e:32:78
    LL_N en1: flags=8822 < broadcast simplex multicast > | Link addr=C6:2C:03:5E:32:79
    LL_N lo0: flags=8049 < up loopback running multicast > | Link addr=none | IPv6 ip=0.0.0.0/netmask=0.0.0.0 | IPv4 ip=127.0.0.1/netmask=255.0.0.0 | IPv6 ip=0.0.0.0/netmask=0.0.0.0
    LL_N pdp_ip0: flags=8011 < up ptp multicast > | Link addr=none | IPv4 ip=10.235.128.15/netmask=255.255.255.255
    LL_N pdp_ip1: flags=8011 < up ptp multicast > | Link addr=none
    LL_N pdp_ip2: flags=8011 < up ptp multicast > | Link addr=none
    LL_N pdp_ip3: flags=8011 < up ptp multicast > | Link addr=none
    
    [...]
    
    2012-05-27 16:26:48.401 WhatsApp[534:3203] LL_N -[AsyncSocket tryConnect] [Line 1245] Binding the socket to WWAN.
    2012-05-27 16:26:48.551 WhatsApp[534:3203] LL_N -[AsyncSocket bindSocketToWWAN:] [Line 1198] Network interface: pdp_ip0
    2012-05-27 16:26:58.620 WhatsApp[534:3203] LL_N -[AsyncSocket doConnectTimeout:] [Line 1313] Attempt to connect to host timed out.
    2012-05-27 16:26:58.653 WhatsApp[534:3203] LL_N -[AsyncSocket close] [Line 473] Close connection.
    2012-05-27 16:26:58.858 WhatsApp[534:3203] LL_N -[AsyncSocket close] [Line 544] Retry connect.
    2012-05-27 16:26:59.102 WhatsApp[534:3203] LL_N -[AsyncSocket tryConnect] [Line 1226] Connecting to 173.192.219.156 on port 443
    2012-05-27 16:26:59.136 WhatsApp[534:3203] LL_N -[AsyncSocket tryConnect] [Line 1245] Binding the socket to WWAN.
    2012-05-27 16:26:59.350 WhatsApp[534:3203] LL_N -[AsyncSocket bindSocketToWWAN:] [Line 1198] Network interface: pdp_ip0
    2012-05-27 16:27:10.175 WhatsApp[534:3203] LL_N -[AsyncSocket doConnectTimeout:] [Line 1313] Attempt to connect to host timed out.
    2012-05-27 16:27:10.222 WhatsApp[534:3203] LL_N -[AsyncSocket close] [Line 473] Close connection.
    2012-05-27 16:27:11.416 WhatsApp[534:3203] LL_N -[AsyncSocket close] [Line 544] Retry connect.
    2012-05-27 16:27:12.539 WhatsApp[534:3203] LL_N -[AsyncSocket tryConnect] [Line 1226] Connecting to 50.22.210.145 on port 5222
    2012-05-27 16:27:12.594 WhatsApp[534:3203] LL_N -[AsyncSocket tryConnect] [Line 1245] Binding the socket to WWAN.
    2012-05-27 16:27:13.665 WhatsApp[534:3203] LL_N -[AsyncSocket bindSocketToWWAN:] [Line 1198] Network interface: pdp_ip0
    2012-05-27 16:27:24.893 WhatsApp[534:3203] LL_N -[AsyncSocket doConnectTimeout:] [Line 1313] Attempt to connect to host timed out.
    2012-05-27 16:27:25.153 WhatsApp[534:3203] LL_N -[AsyncSocket close] [Line 473] Close connection.
    2012-05-27 16:27:31.005 WhatsApp[534:3203] LL_N -[AsyncSocket close] [Line 544] Retry connect.
    And so on...

    Maybe some of you can help me with this issue?
    I want to set a system-wide Proxy when I am connected to 3G (like Autoproxy does it on Android).
    Maybe there is an app for that?

    If I tap on "Systemstatus" in the WhatsApp settings, I see a Twitter page with WhatsApp infos.
    If I remove the proxy from the "preferences.plist", that does not work.
    Facebook, AppStore, Safari etc. is working with the Proxysettings but not WhatsApp.

    It seems logical, that WhatsApp chooses pdp_ip0 if I check the infos given by "ifconfig -a" (on iPhone)

    Code:
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
            inet 127.0.0.1 netmask 0xff000000
    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
            ether c4:2c:03:5e:32:78
    pdp_ip0: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1450
            inet 10.235.123.20 --> 10.235.123.20 netmask 0xffffffff
    pdp_ip1: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1024
    pdp_ip2: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1024
    pdp_ip3: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1024
    en1: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
            ether c6:2c:03:5e:32:79
    I hope somebody can help me :-)



  2. #2
    sam
    sam is offline
    Chief of Administration
    iPhone Dev Team
    Array sam's Avatar

    Join Date
    Jun 2007
    Posts
    1,852
    Post Thanks / Like
    Downloads
    35
    Uploads
    277
    Rep Power
    10

    Default

    The problem is that WhatsApp might be unable to use a proxy. There are various options to force a proxy up on it. If the communication is http, just use charles (Charles Web Debugging Proxy &bull; HTTP Monitor / HTTP Proxy / HTTPS & SSL Proxy / Reverse Proxy) and configure it as a http reverse proxy to the real host, than manipulate your router for wifi DNS settings to point to it. That canbe done with most DDWRT routers etc.. You will get the http communication. If it is not using charles at all, you need to find a way to force it to use wifi (Airplane mode?) and sniff the traffic with something like wireshark (Wireshark Go deep.).

    Hope that helps.
    If you just want to support hackint0sh.org with a donation click here.
    Follow me on twitter: http://twitter.com/sam_hackint0sh

 

 

Similar Threads

  1. [WinterBoard] Black Interface 2.0
    By Davvido in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 11-23-2008, 07:36 PM
  2. iPhone Web Interface for uTorrent
    By ahdrage in forum Web Applications
    Replies: 3
    Last Post: 04-01-2008, 05:10 PM
  3. Using English Interface with other Dictonary?
    By mitzekotze in forum General
    Replies: 0
    Last Post: 01-11-2008, 12:32 PM
  4. [1.1.2] German language interface HELP!!
    By Iphornicator in forum Tools
    Replies: 2
    Last Post: 01-05-2008, 01:08 PM
  5. iPhone Interface
    By shiney in forum General
    Replies: 27
    Last Post: 07-07-2007, 08:39 PM

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 08:33 AM.
twitter, follow us!