[Q] Is it possible to renew IP address over GPRS/3G? - Networking

I'm using a Nexus One (Android) on Vodafone in Australia and would like to know if it's possible to release/renew an IP address over GPRS/3G.
I've tried using netcfg, ifconfig but none of them seem to actually get another IP. If I shutdown data and start it again, I get another IP.
Any ideas?

mrjarhed said:
I'm using a Nexus One (Android) on Vodafone in Australia and would like to know if it's possible to release/renew an IP address over GPRS/3G.
I've tried using netcfg, ifconfig but none of them seem to actually get another IP. If I shutdown data and start it again, I get another IP.
Any ideas?
Click to expand...
Click to collapse
Did you try turning airplane mode on and off? That may cause you to get a new IP.

In GPRS your IP is decided by something called a "PDP Context" (a sort of "contract" you have with the Network that decides which data service you can access, what would be the speed of your connection (QoS) and your IP address).
This PDP Context is not easily killed and that's the beauty of the thing : when you're in bad coverage or moving from cell to cell, this PDP permits you to keep your data connection (it'll be probably slower but your web page will go on loading when you'll get coverage again etc...)
So in a word, to renew your IP you must recreate your PDP Context and in order to do that your must reconnect to the network : airplane mode, turn your device off/on or cut data then turning it on like you've just said. No other way...
I'm not an linux expert but I think the "renew" command send an order to the network card. In your phone there's not really a network card but these network protocols, so that's why it doesn't work for me...
I'll search but I think will be the same with 3G Networks...

Related

wi fi woes :(

hi guys, any help you can give is realy apreciated,
ive never used wifi before on my exec or in a home network so treat me as a beginer. ive got a pci wifi network card and i am trying to set it up so i can use my mda pro when i am at home. my computer is currently connected to my housemates wired network which is a simple set up
bb modem......
......|..............
....router........
..../....\..........
my.....his.......
pc......pc.........
like i said nothing fancy, i installed the network card which went fine and bridged my network connections together as advised by my large local computer retailer. my computer asked me to provide a name and network key so i did. my pc is now connected to my mda pro.
and in the wifi it displays
main
status connected to network
ssid: cusnet *thats what i entered as my network name*
tx rate:auto
mode: ad hoc
channel:6
bssid:00-71-0e-71-29-00
mac:00-09-2d-52-4d-66
ip:169.254.156.219
settings
half in power save
turn off not on
leap
nothing entered
...............................
every so often i get the following
*unable to obtain a server assigned ip address, try later or enter an ip address in network settings*
i cant get any internet based app to work and i am asumeing its due to the settings, any help is gonna be soooo apreciated
i dont want to subscribe to wifi in the city if i cant get it working in my own home lol
any one think this might be a network problem ?
ive posted a few questions on network forums but no reply yet
i am lost
:?
From the info that you have given, it looks like your universal is getting an incorrect ip address. What you need to do is check what your desktop ip address and gateway is. Then give your universal and ip in the same range as the desktop ip and also add the gateway to your device. It should wotk this way !
The best option would be to get a wireless access point instead of the wireless network card and set things up like this.
....bb modem......
...........|..............
........router........
..../......|......\.............
my...access......his......
pc......point.......pc......
The wireless access point plugges directly into the router rather than connecting through your PC.
If you don't fancy the above setup then you could use internet connection sharing. You'll need to remove the bridge between your network cards and ensure that the router,your PC and friends PC's isn't using 192.168.0.x IP addresses.
Then you can select ICS (tick the allow other computers to access internet...) on your network card's (one to the router) advanced properties and select your wireless NIC as your home network connection.
I hope this isn't too heavy I've resisted the temptation to start talking about subnets, NAT, DHCP and all the other networking terms.

How to configure the WiFi Router application?

Please assist.
1. My PC identifies the HD2 as Ad-Hoc and not as Infrastructure. Is it the case?
2. The WiFi router application registers only the WAP APN in the internet connections. I usually use the Internet APN, why is it not chosen?
3. On my PC, should I enter the 10 digits WEP key for all four WEP key slots, or just into the first slot?
4. When I try to connect, the HD2 prompts me to enter a Static IP address (no DHCP support). Where should I enter it? what mask and gateway addresses?
Thanks
anyone using that app?
I tried, but I can't. Unlike the original poster, it tries to connect to my MMS access point, of course there's no internet access there. I haven't been able to figure out how to make it work yet.
Mine works perfectly but only if the HD2 is right next to the computer. For some reason the range is ridiculously minimal.
sunking101 said:
For some reason the range is ridiculously minimal.
Click to expand...
Click to collapse
Battery drain, if the range was increased it would kill the battery.
I have the same problem as the first poster : I can't choose the correct 3G connection. Only one connection is displayed in HTC Wifi Router with one single radio button on its right and it's not the right internet connection for unlimited internet.
in order to choose the right APN, please choose SETTINGS>CONNECTIONS>CONNECTIONS>ADVANCED>SELECT NETWORKS and enter the right APN (Internet) in both tabs.
That will do the trick.
still, although HD2 is discoverable by my PC (in wifi Find networks), with a good reception level, my PC insists that it is an Ad-Hoc connection (no DHCP) and when I try to use Infrastucture (with the wep key), my PC cannot establish association (get IP address from the HD2) and it shows no signal level.
Please assist.
Zolom, thanks? I did that and it improved a bit the situation: now email clients work (pop) but web surfing still doesn't work. I didn't try yet other internet connections.
not working anymore
before i installed 1.48 everything worked perfect but after the upgrade it doesnt work anymore. now my computer can connect but the phone also connects to its own network.... very strange behavior.... tried to turn off wifi but that also turns off router. any suggestions anyone?
Voila I finally got rid of the "HTTP 403 Forbidden" error with a (partial?) solution.
I have installed user agent switcher (http://chrispederick.com/work/user-agent-switcher/installed/07/) for Mozilla on Windows Vista, and I entered the user agent of my ISP on my HTC HD2 . It works!
Questions:
- Is it possible to set the user agent on other browsers such as IE or Opera?
- I noticed the user agent is not necessary for pop3 email clients. Is user agent mandatory for other internet services, like Messenger, SIP, Skype, software updates, etc?

remote desktop problem

Hi everyone,
I would like to connect to my laptop next room from local network. I can connect perfectly when I type in my IP address into the first textbox (Computer), but I can't connect when I type in my Computer Name (full computer name) instead. I tried MyPCName as Computer, \\MyPCName as Computer, forwarding port 3389 to my IP, leaving domain name empty, putting in my workgroup name as a domain, putting in my computer name as a domain, putting in myPCName\MyUserName as Username, \\MyPCName as Computer, still the same. It won't connect unless I put in the IP address. I would like to do this since my workplace assigns a different IP to my laptop then I assign at home, but naturally I have the same computer name at both places, so I would like to have a permanent setting for both places.
I'm running Windows 7 64 bit on my laptop and 1.66.405.2 ROM on my HTC HD2.
Many thanks in advance.
can you connect to it ok using another computer? might be a dns issue at a guess...
I can connect from other computers fine. Also on my HD2 I can see the host names of PC's under Resco Explorer and map them. However, remote desktop mobile refuses to work with the Computer Name. I can ping my Laptop's IP and also Computer name from pingbox2. Only in Remote Desktop Mobile there is a problem.
windows 7 by default blocks remote desktop connections from different versions of remote desktop. if you right click computer and select properties, then choose remote settings on the right hand side and select the middle option (accept connections from all verions of remote desktop). havent tried this my self but it solves most issues when using different versions of windows
OK, I sort of figured it but would still appreciate some help. Here is how I got it to work:
I had OpenDNS IP under DNS settings for wireless adapter. I deleted them. If I don't do this, pinging my computer name from HD2 always brings 67.215.65.132, which is opendns and not my true local IP, i.e. 192.168.x.x. I also had to disable the data connection (3G) and only have wireless. If I don't disable 3G, I can only connect with IP and not computer name. Only after doing these 2, when I pinged my computer name, I got the true local IP and I was able to connect with Remote Desktop Mobile using computer name. Now my question is:
1- I don't want to quit using opendns, is it possible?
2- I don't want to disable 3G connection every time, is it possible?
thanks in advance.
For me it works with MyPCName in computer and empty domain, both for XP and 7.
Something seems strange with your phone's networking configuration. At a guess (and this is a long shot), I would check your VPN settings on your phone to make sure you're not connecting to a different domain over 3G as this might explain why it works when you turn off the data connection on the phone and why it works by IP address.
As I said though, it's a long shot and is the only thing I could think of that fits your particular symptoms...
ozkaya said:
OK, I sort of figured it but would still appreciate some help. Here is how I got it to work:
I had OpenDNS IP under DNS settings for wireless adapter. I deleted them. If I don't do this, pinging my computer name from HD2 always brings 67.215.65.132, which is opendns and not my true local IP, i.e. 192.168.x.x. I also had to disable the data connection (3G) and only have wireless. Only after doing these 2, when I pinged my computer name, I got the true local IP and I was able to connect with Remote Desktop Mobile using computer name. Now my question is:
1- I don't want to quit using opendns, is it possible?
2- I don't want to disable 3G connection every time, is it possible?
thanks in advance.
Click to expand...
Click to collapse
about the open dns issues, I suspect that can be solved by making sure your router lets the incoming connection into your home network (you say it resolves to 66.whatever when open dns is used, shouldn't be a problem do long as you don't forget that will be your home ip address so that connection will neef to be allowed through the router and then forwarded by your routers virtual server (our whatever your router software calls out) to your laptops internal ip address.
as for the 3g it should use wifi over 3g by default..... mine certainly does, no need for me to disable it.
tomallen35 said:
Something seems strange with your phone's networking configuration. At a guess (and this is a long shot), I would check your VPN settings on your phone to make sure you're not connecting to a different domain over 3G as this might explain why it works when you turn off the data connection on the phone and why it works by IP address.
As I said though, it's a long shot and is the only thing I could think of that fits your particular symptoms...
Click to expand...
Click to collapse
I think you're right, when the 3G is on (and also Wifi on), Resco shows computers from all around the country when I click computers near me and not my local network. When only wifi is on I can see my local computers. 3G probably has precedence over Wifi? How can I correct this?
samsamuel said:
about the open dns issues, I suspect that can be solved by making sure your router lets the incoming connection into your home network (you say it resolves to 66.whatever when open dns is used, shouldn't be a problem do long as you don't forget that will be your home ip address so that connection will neef to be allowed through the router and then forwarded by your routers virtual server (our whatever your router software calls out) to your laptops internal ip address.
as for the 3g it should use wifi over 3g by default..... mine certainly does, no need for me to disable it.
Click to expand...
Click to collapse
But the 66.whatever address is generic openDNS lookup IP and same for everyone. Are you suggesting me to route this IP to my local IP, i.e. 192.168.x.x? Oh, one more thing, I can also connect when 3g and wifi are both on, but only through computer's IP and not computer name. Can you connect with computer name while both are on and connected?
when your phone does a dns lookup on the name it resolves to the open dns assigned address (not the same for everyone, otherwise the open fns system wouldn't work) so to connect to your computer the phone sends its request to open dns who forward that request to your current actual address.at home that address is your home ip address BUT it isn't your laptops address it is your routers address.(stop reading here if you don't have a router).
so the router needs to be told "if you get a connection request in port (whatever the remote desktop port is) please forward it to (laptop ip address)
its called port forwarding in some routers, virtual server in others.
samsamuel said:
so the router needs to be told "if you get a connection request in port (whatever the remote desktop port is) please forward it to (laptop ip address)
its called port forwarding in some routers, virtual server in others.
Click to expand...
Click to collapse
You're mixing up things a bit - he's not using dns but the computer netbios name. The point is that he has wifi on and connected as well as 3G, thus with an "intranet" ip address on Wifi... so the program/phone should be looking up the name on that connection, where it would find it, instead of looking up over the 3G connection. As the netbios protocol is not routable, it has no chance of finding the computer name over 3G/internet and back home, even with port mappings.
kilrah said:
You're mixing up things a bit - he's not using dns but the computer netbios name. The point is that he has wifi on and connected as well as 3G, thus with an "intranet" ip address on Wifi... so the program/phone should be looking up the name on that connection, where it would find it, instead of looking up over the 3G connection. As the netbios protocol is not routable, it has no chance of finding the computer name over 3G/internet and back home, even with port mappings.
Click to expand...
Click to collapse
you're totally right, I have a router and its port is forwarded to my laptop IP, but this is only good (and works well too) when I want to connect from Internet to my local network. I tried OpenDNS exceptions for VPN and defined an exception named as MyComputerName but it didn't work. Then I tried a dyndns solution, but it only works for external connections and not local network, i.e. it can't map local IP's. What I need is a dynamic client which can update my local IP.
I also tried to edit hosts entry in the registry with MyComputerName. It works for a single IP, but I'm not sure if I can write multiple IP adresses (my work and home local IP) into that. If I could maybe everything would be OK.
I've just tried a couple of things and it really works fine for me. If I connect Wifi only, I can remote desktop with the computer name. If I then connect data connection, it still works. Disabling wifi and obviously it doesn't work anymore. Re enabling wifi, it doesn't work at first, but does again after ~30 seconds once the netbios protocol has done its host lookup procedures.
There simply shouldn't be anything special to do.
kilrah said:
I've just tried a couple of things and it really works fine for me. If I connect Wifi only, I can remote desktop with the computer name. If I then connect data connection, it still works. Disabling wifi and obviously it doesn't work anymore. Re enabling wifi, it doesn't work at first, but does again after ~30 seconds once the netbios protocol has done its host lookup procedures.
There simply shouldn't be anything special to do.
Click to expand...
Click to collapse
thank you very much for your time, I appreciate it. You're right in that waiting a bit resolves the issue (it's a bit more than 30 secs for me that's why I thought it wasn't working when 3G is enabled) but only when OpenDNS is not used. I assume you don't use OpenDNS, right? Once I put that one into equation, it takes over NetBIOS protocol and returns its IP instead of the local IP(192.168.x.x). As far as I understand, DNS lookup has precedence over NETBIOS and if the name is not found in DNS it consults NETBIOS protocol. However OpenDNS has this nice "feature" where it finds the name with its own IP. There are several posts about this on its webpage and they say to either disable the typo correction or put exceptions for Netbios names, but sadly none of them works for me right now.
Nope, no OpenDNS, never actually heard of it.
How does it work? Do you enter their DNS server address in the network settings of your pc/phone, or is it an app you run?
you click Start/Settings/All Settings/Connections/Wifi/First Button/Switch to Network Adapters tab/Select Broadcom 802.11 DHD Network Adapter/Switch to Name Servers Tab/Type in 208.67.222.222 for primary DNS and 208.67.220.220 for secondary DNS, click OK. that's all. Could you try if it's not so much trouble? Thanks.
OK, remote desktop doesn't work either with the OpenDNS servers in.
I'm pretty sure it must be a limitation of the remote desktop app itself, as resco explorer can still navigate and/or discover the network shares of my other PCs with no problem. NBTStatCE also finds everybody.
Wouldn't even surprise me, as that Remote desktop mobile has always been troublesome. I don't remember exactly, but in the WM5 days it was pretty much impossible to use on a local network due to a weird handling of names... if I remember well all "local" (NetBIOS) addresses without a '.' entered in the remote desktop app would be redirected to the "Work" connection, while "remote" ones with a period would be directed on the "Internet" connection. As a network card can only be defined as one of them, if you wanted it to work in both cases through Wifi you had to switch the card from Work to Internet and back all the time. And of course when it's on Work it breaks some other things that use the default system handling like mail.

Wi-Fi router

All
I have my htc setup to both internet sharing and Wi-Fi connection on my work PC with a lan connection. On both of these connections e.g. wired USB and wireless i can get the internet for about 3 minutes then it stops working. Is there some sort of block? I did see a while back that the WiFi app has no restrictions...
Any help would be superb.
Cheers
Baker0
Thats a little odd, there is certainly no block and I have had the wifi router running for a good 30-40 minutes without failing.
what part is failing, is the phone no longer running the wifi router, or is the pc no longer getting internet on that network connection?
If you need help on how to find this info just reply and I can walk you through some more diagnostic steps.
The phone is still running just the internet stops on the machine. I have to stop the wi fi on the phone then start again then connect. I think it might be t-mobile but the internet on the phone is fine
are you in the uk?
if you connect your laptop to the phone via the wifi router you should be able to right click the network logo, click on status and view the wifi network info, it should tell you in there if it has internet access on that network connection.
If you try this again and when it fails check this status window and see if windows is seeing an internet connection or not?
when the net fails again try and visit http://72.14.203.100/ (this should be the google homepage) if you see google then there is a dns problem if it still says network timeout or failed to connect or something like that then we will have to dig further.
LOL thanks for your help. I am in the UK. ive been working in IT for the last 12 years and I know and have done the test, its not the machine it has something to do with the phone or t-mobile network
Sorry to hijack your thread a little, but I'm on the T-Mobile Network in the UK too (except I'm using a Touch Pro with a custom ROM), and although I can make connections from the PC to websites using the IP address, the DNS isn't working so I can't resolve domain names.
Any ideas?
Cheers,
Steve.
Baker0 said:
LOL thanks for your help. I am in the UK. ive been working in IT for the last 12 years and I know and have done the test, its not the machine it has something to do with the phone or t-mobile network
Click to expand...
Click to collapse
It must be the phone then since I do use wifi router, I am on t-mobile and in the UK and I do not experience this :S
I seem to be saying this more and more but maybe you should try a hard reset and see if that fixes the problem?
StevePritchard said:
Sorry to hijack your thread a little, but I'm on the T-Mobile Network in the UK too (except I'm using a Touch Pro with a custom ROM), and although I can make connections from the PC to websites using the IP address, the DNS isn't working so I can't resolve domain names.
Any ideas?
Cheers,
Steve.
Click to expand...
Click to collapse
This is likely an issue with the way your machine has been setup to connect to the wifi network. Try visting the properties of the network and vieing the dns settings for the tcp/ipv4, It should be set as Obtain DNS server addresses automatically. If it is set like this then try setting it too 8.8.8.8 and 8.8.4.4 these are googles, dns servers if this works for you then you could stick with this or do some further digging as to why you are not getting the dns server addresses automatically like you should be.
Xp3RiM3nT said:
This is likely an issue with the way your machine has been setup to connect to the wifi network. Try visting the properties of the network and vieing the dns settings for the tcp/ipv4, It should be set as Obtain DNS server addresses automatically. If it is set like this then try setting it too 8.8.8.8 and 8.8.4.4 these are googles, dns servers if this works for you then you could stick with this or do some further digging as to why you are not getting the dns server addresses automatically like you should be.
Click to expand...
Click to collapse
Setting the DNS entries to Google's makes it work, but attempting to get the DNS Server's automatically leaves me with no ability to resolve domain names. How strange?
Thanks for the workaround, not sure where to start looking to fix it properly.
Cheers,
Steve.
Hey guys,
I am new to this wifi router thing and got the following questions:
1. To be able to use it, you must have data connection with your provider. Am I right?
2. By any chance, can I use this system by using a sim taken out of a prepaid mobile broadband dongle and inserted into my device (htc touch HD)?
3. Once I get connected can I surf the internet/check emails etc from within the device itself without the need to use a laptop?
Please don't mind these basic stupid questions.
cheers

WiFi Hotspot IP change??

I use my phone for a WiFi hotspot and sent the signal to a Wireless WiFi router to get internet to my Desk Top computer and my FTA satellite box. I was just wonder, if I turned off my WiFi hotspot and turned it back on would the IP Address change at all or would it be consistently the same??
driver24 said:
I use my phone for a WiFi hotspot and sent the signal to a Wireless WiFi router to get internet to my Desk Top computer and my FTA satellite box. I was just wonder, if I turned off my WiFi hotspot and turned it back on would the IP Address change at all or would it be consistently the same??
Click to expand...
Click to collapse
try it out?
Leased IP Address
reuthermonkey said:
try it out?
Click to expand...
Click to collapse
As I said, I run my computer from my cell phone wifi hotspot and when I turn off my wifi hotspot and turn back on the IP Address seems to stay the same and MOST IMPORTANT, my computer does not show how long my IP Address is Leased for. Is that a good sign, which means that the IP will stay the same and not change every time I turn off the wifi hotspot. I really need a constant IP and was just wondering. I have unlimited data on my cell and trying to save money on the cost of internet, like many of us. Thanks for any help.
driver24 said:
As I said, I run my computer from my cell phone wifi hotspot and when I turn off my wifi hotspot and turn back on the IP Address seems to stay the same and MOST IMPORTANT, my computer does not show how long my IP Address is Leased for. Is that a good sign, which means that the IP will stay the same and not change every time I turn off the wifi hotspot. I really need a constant IP and was just wondering. I have unlimited data on my cell and trying to save money on the cost of internet, like many of us. Thanks for any help.
Click to expand...
Click to collapse
Well, if you're on T-Mobile you don't actually have a publicly routable IP address. So you may think that you're getting a consistent IP from your phone, but you really probably aren't to the rest of the internet.
Of course, if you truly *need* a stable IP address (ie for hosting something), then you should at best pay for residential DSL/Cable (which are still dynamicly assigned IP addresses, but have long leases and typically reassign the same IP address to your modem's MAC), or business Cable/DSL which guarantees your IP address will stay the same.
Having expectations of that sort of thing on a mobile network isn't going to be very helpful.
And that said, if you're trying to use T-Mobile as a home internet replacement, you're probably going to start complaining in the "5GB data cap" thread pretty soon. Please don't waste your time. Switch to Sprint if you need unlimited. You'll at least get a publicly routable address, and it may even stay consistent. If you really need to "save" money: sell your phone, transfer your line to someone else, get on prepaid and use the savings to pay for basic DSL.

Categories

Resources