1. Download our Official Android App: Forums for Android!

Port Forwarding....

Discussion in '3' started by GIR, Sep 6, 2010.

  1. GIR

    GIR Well-Known Member
    Thread Starter

    Feb 14, 2010
    Hi folks,
    I have occasions that I need to either host a small website in my phone or stream video from it.
    I have the software installed and set up, and works well of Wifi, but how can I get the same service over 3G?
    Has anyone else contacted 3 about this?
    I'd be very interested to hear anything related to this.
    All the best,


  2. hunnymonster

    hunnymonster Newbie

    Sep 7, 2010
    Since 3 is probably like most other mobile networks, it will use 'fakenet' (probably addresses and NAT them through a proxy - you're at the mercy of the network for getting that port-forwarding done - and I suspect they won't do it.
  3. bherbst

    bherbst Lurker

    Jul 12, 2011
    I can confirm that 3 in Austria gives you public IPs (not NATed). However, such public IP is protected by the provider (3) by default so that no connections from outside may reach your device. However on the 3 website you may uncheck this. It may take some days for 3 to make this change to take effect but it will allow you to have a mobile server. I tested this using some IP Webcam. It works fine.
    Let me also mention that there is a "Port Forwarder" app in the market that allows you to forward a port to a device in your local subnet that you created using any tethering method.
  4. Jason Vas Dias


    Jul 16, 2017
    This for me is #1 issue I am trying to solve with my mobile phone .
    To cut to the chase (conclusion) I believe the only option is to rebuild
    android from scratch with root / sudo access configured so one can
    write /etc/default/hostapd.conf and and initscript to configure iptables to
    configure full NAT and port forwarding
    to addresses served by the Android DHCP server and hostapd ?
    And then you are at the mercy of the carrier to recognize that
    ports CAN BE served by mobile devices - they might not allow
    common restricted ports like 80 or 22, but might allow ports like
    5900, 6001 or 65533 , so that even if you can test port access
    via NAT to your external IP from the NAT destination (terminal),
    it does not mean other devices can connect to those ports - you need
    to test access from another 4G / LTE / 3G terminal or WAN connected
    device, NOT from the NAT terminal device .
    Unlike with a home Wifi Router, which does full NAT, and allows
    ports to be forwarded, as did the previous Android 4.2.2 Settings
    -> WiFi HotSpot -> Configuration dialogs .
    So if I go to http://ip2location.com , which tells me what my mobile
    phone's external IP address is, this is
    A) only partially NAT-ed to the hotspot network DHCP devices -
    only responses to requests from the DHCP terminals will be forwarded
    with no port forwarding ports configured
    B) if other hosts request access to ${EXTERNAL_IP}:80 (port 80: http)
    this is up to the mobile phone company to honor in the first place .
    There really is no other workaround than to configure hostapd
    & NAT iptables (requiring root access) to do full NAT ? Anyone know
    of any way of doing this on Android 7.0 ? Does ResurrectionRemix
    (Android 7.1) support this any better than 7.0 ? At least I should be
    able to root my phone using it ...

    But a shame to have to root the phone just to access settings that were
    available in Android 4.2.2 ! This to me is a major bug , a regression of
    7.0+ wrt 4.2.2, but I guess is classed as providing a different type of
    service than 4.2.2 by the Android developers?.

    I am considering trying to get Android 4.2.2, which does have user
    configuration options for port forwarding and timeout configuration,
    compiled with support for LTE backported & enabled to overcome this issue .
    Is there an LTE backport for 4.2.2 ?

Share This Page