networking - dynamic DNS for 3G USB modem

07
2014-07
  • user3547134

    I had a doubt. Is it possible to setup ddns on a 3G dongle ?

    I want to be able to connect to the device connected to the dongle from anywhere in the world . That is, even if Ip address changes dynamically, I want to be able to access the device remotely from anywhere in the world by using the hostname and port number ??

    Is that possible ?? Can anyone help me on how to do this ??

    The device to which the dongle is connected to is the raspberry pi.

  • Answers
  • Michael Krebs

    It is possible, and pretty easy, using one of the popular dynamic dns providers, like noip.com or dyndns.com.

    You install dynamic dns client software on the computer, which is available for all major operating systems including linux. This software hits your ddns provider's update page on a regular basis, and if your ip has changed, the provider detects that you are coming from a new IP, and updates the DNS for your domain name.


  • Related Question

    windows xp - WinXP - Having trouble sharing internet with 3G USB modem via ICS
  • Carlos Nunez

    all! I've been banging my head against a wall with this issue for a few days now and am hoping someone can help out.

    I recently signed up for T-Mobile's webConnect 3G/4G service to replace the faltering (and slow) DSL connection in my apartment. The goal was to put the SIM in one of my old phones and use its built-in WLAN tethering feature to share Internet out to rest of my computers. I quickly found out that webConnect-provisioned SIMs do not work with regular smartphones, so I was forced to either buy a 4G-compatible router or tether one of my old laptops to my wireless router and share out that way. I chose the latter, and it's sharpening my inner masochistic self by the day.

    Here's the setup:

    • GSM USB modem (via hub), ICS host ->
    • 10/100 Mbps Ethernet NIC, ICS "guest" ->
    • WAN port of my SMC WGBR14N wireless router in bridged mode (i.e. wireless access point).
    Ideally, this would make my laptop the DHCP server and internet gateway with the WAP giving everyone wireless coverage. I can browse internet on the host laptop fine.

    However, when clients try to connect, they get a DHCP-assigned IP from the laptop and are able to use the Internet for a few minutes before completely dying. After that happens, they are able to re-associate with the WAP and get IP addresses, but are unable to use Internet or resolve IP addresses until the laptop and router are restarted. If they do get access, it's very, very slow. After running Wireshark on the host machine, it turns out that this is because every TCP connection keeps getting RST. DNS seems to work.

    I would normally think the firewall is the culprit here, but when it drops packets, it drops them completely. The fact that TCP connections are being ACK'ed by the destination rules that out. Of course, none of the event Log isn't saying anything about what's going on. I also tried disabling power management on the NIC, since that's caused problems in the past; that didn't help either. I finally disabled receive-side scaling as per a Microsoft KB (that applied to Windows Server 2003, SP2) to no avail. I'm thinking of trying it with a different NIC (will be tough; don't have a spare Ethernet NIC around for the laptop), but I'm getting the impression that this simply doesn't work.

    Can anyone please advise? I apologise for the length of this post; all contributions are much appreciated!

    -Carlos.


  • Related Answers
  • Carlos Nunez

    It sucks that this didn't get a lot of attention, but then again, normal folks have some sort of dedicated connection instead of this setup.

    After playing around with it for a good while, I'm finally convinced that ICS is fundamentally broken. It seems that its biggest problem is with the stability of the built-in ICS DHCP server. Sometimes, DHCP will try to work but will route DHCP requests to the hosting NIC instead of serving DHCP requests on its own. I would get link-local addresses when this happens. Other times, the DHCP server will quit working entirely by letting DHCP requests go completely unanswered. I think these two problems happen in succession, but not too sure.

    I have no idea why the TCP connections start RSTing after a while. I noticed some errors from Tcpip in event viewer, so I think it has something to do with winsock getting corrupted. Now that I think about it, perhaps the DHCP issues are related to that as well.

    The only way I was able to get this to work with some stability is by doing the following:

    • Stopping ICS by unsharing my connection from the modem,
    • Disabling both NICS,
    • Resetting winsock by using netsh (netsh winsock reset). I don't reboot.
    • Re-enabling both NICs, and finally
    • Re-enabling ICS by sharing the modem connection again.

    With this in mind, is there any way to enable winsock logging to see whether the underlying issue presents itself there?

    Combined with everything else I did, I have no idea how long this will work for. Hopefully, it'll work long enough to set me over until I get the Cradlepoint modem I bought.

    Hope this helps someone!

  • ultrasawblade

    ICS uses a fixed IP range, 192.168.1.0/24 if I'm not mistaken (I could be). Make sure this does not conflict with the IP/subnet on your SMC WGBR14N.

    It is also possible your 4G modem may be detecting the TTL of outgoing traffic and eventually terminating connections or dropping its PPP session if the TTL isn't what it suspects, this is a way to discover if traffic is originating from the connected system or one "behind" it.