Related
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.
ok - i have gone through about 6 roms now and im constantly getting the same story.
i primarily use CM based roms cuz those are the only ones that seem to connect to ad-hoc networks shared from my computer. when i use CM7 roms the internet constantly connects and disconnects and when i use CM6 roms the phone says im connected but the PC doesnt see any present connections.. not even with connectify or the other hotspot programs seem to help
its strange cuz i also have an aria with a CM6 rom which connects flawlessly but the HD2 cant even be seen on the network.
PLEASE can anyone help me out with this problem? I've been awake for the past 2 days trying to fix this problem from all sorts of angles and i still cant connect to an ad-hoc wifi
i just tried connectify but the problem is the same, it says im connected but still there is no data coming from the computer. my MAC address appears fine so i have no idea what is causing the problem
not even changing the channels, editing wpa_supplicant, using static IP or DHCP... nothing helps..
just realized that if i try to connect while other devices like my aria are currently connected, the other devices get disconnected from the network.. no idea whats causing that but could use some insight
There is another longer thread with someone having the same or at least very similar problems. All non-Sense builds he's tried have wifi "connecting", but not actually transferring any data. When he loads up a Sense build, it all works fine. I'd look it up, but search unavailable for "10 minutes". I did comment on it though.
You wrote you try to setup an ad-hoc WiFi connection. This means you connect two devices together, not to a network (if you want to use your laptop as Internet bridge it's a more complex config).
You're talking about DHCP in ad-hoc connection... Do you setup a DHCP server on your computer (is this even possible)?
You said when you have other devices connected... this is not ad-hoc.
I think you try to connect the wrong way, sorry if I misunderstood but you have to provide more info for me to help.
As general advice:
Check for your ROM thread as initially their was a problem with all devices (with Android on HD2) having the same MAC (has been solved)
Start first to try to connect to a "normal" WiFi network
Make sur of the network config (try with basic b/g instead of n, n+...)
First step could be to setup a basic b/g network with DHCP enable, SSID broadcast, no security (wep,...): the kind of network you have when you take your access point out of the box.
No other advice... hope this will help.
Check the IP you have on your phone when connected. If it's kind of 169.xxx this can't work. It's auto IP from the device itself.
thanks for the response mate. Unfortunately, there are not many unsecured "routed" wifi connections available where i am to test - thats why i have to rely on the laptop to feed internet to my phones through an adhoc network.
let me explain what im doing:
im currently trying to use internet sharing from my laptop on my phones - i have 2 android phones, an aria and an HD2 - both of which connect to the internet through an ad-hoc wifi connection to the the laptop which has LAN internet connection.
the only way to connect is by issuing each device a static IP
eg. laptop - 192.168.0.1,
aria - 192.168.0.3,
HD2 - 192. 168.0.2
whenever i try to use DHCP i get "obtaining IP address" from the phones until it auto-disconnects.
using a static IP-Config, the aria connects and browses effortlessly. But the HD2 wont. Just says "connected" but the pc says "waiting for peers to connect" and doesnt feed any data to the HD2. Additionally, i found out that if the aria is already connected while attempting to connect the HD2, the aria gets kicked from the net..
if it helps, my rom is CMN V_2.0.. its the only one that gets me "connected", so to speak..
Then I will not be very helpful as I seldom use ad-hoc and bridge connection.
I connect my HD2 to my home network only (works in WEP or WPA anyway).
Just what I know:
1/ for ad-hoc you can't use DHCP (or you may have to activate a server on your laptop, this will add complexity to your setup)
2/ ad-hoc is only between 2 devices (1 laptop and 1 phone for ex), it could explain that when you connect the HD2 the other one is "kicked out".
3/ On your laptop you have to bridge your connections. Anyway, if with another device you can connect and broose, then your laptop setup has to be ok.
4/ if you're connected you may find a good IP in the HD2 (anyway if you use fix IP it has to be ok).
5/ to connect to a server you need a DNS. this is maybe what is missing. Usually when you connect to an access point you use the "AP IP". Not sure it can work here.
Try to manually put the DNS address in your HD2.
Just to make one test:
a/ from your laptop "ping" an Internet server (xda for ex).
--> Start menu, type "cmd", in the cmd windows type "ping server_name"
b/ from your HD2 try to connect with the IP instead of the server name.
This is the puprose of a DNS, to give your device the IP of a server.
NB: to find the DNS server used by your laptop:
In cmd type "ipconfig /all" it will give some info, you may find your DNS in it.
Sorry, no other idea...
I read again what you write and I think you can forget my previous post.
The answer from your laptop is different with the two phones.
I don't think it's a DNS problem.
Sorry, I will be useless! Hope someone with the same network config will help.
My home network is totally different.
If it's specific to your rom you can try to check in your ROM's post if other have the same problem. If no, try to ask there is someone has the same connection setup.
Edit: check this link, it seems that many people with non-sense build has problem with WiFi (I use sense build, always):
http://forum.xda-developers.com/showthread.php?t=907670
i would use a sense build but it seems all of them take up quite a lot of space from internal storage - im always left with 500-400Megs from the 1GB of space
its just odd because when i had a G1 (before i got my HD2) it connected effortlessly as well.. even more so, both aria and g1 could be connected to my laptop's adhoc simultaneously
OOOOHHH!!! i just rememberd hearing something about internet pass-through, but im not sure how ti works.. i will give it a try
The strangest thing I have even experienced, and perhaps can save you time and headache.
** Summary (for those not wanting to read the whole story, but just the fix)
If your HD2 Android can connect to your home WiFi but cannot access Internet, check if your WiFi network uses a 192.168.20.x IP subnet address. The HD2 Android's USB port uses the same subnet, causing a conflict. If you change your home WiFi to use any other subnet, it will work fine.
** The Long Story
Been reading and admiring all the Android developments in XDA-Developers for some time, finally decided it was time to give it a try. Picked one of the more popular and stable MDJ Froyo (Desire HD) for SD and loved it.
Problem is couldn't use the Internet via WiFi from my home. Internet via GPRS works fine, Internet via USB/PC works fine, just not WiFi. The connection to WiFi is successful, picks up a DHCP IP address just fine, but no Internet.
Oh well, perhaps there is a WiFi bug in HD2 Android not reported so never mind.
Wait! On a business trip, when HD2 Android connecting to the hotel's WiFi, Internet works fine! Subsequently in many other places WiFi works also flawlessly.
Must be the WiFi router at home. Not too surprising as I don't use much wireless but wired all my other computers (including notebook PCs), it is faster anyways.
So went back and tested WiFi on a notebook PC (prior to that upgraded the WiFi router's firmware), PC connects and works, but HD2 Android still not. Tried all kinds of WiFi and encryption combination (BGN, BG, G only, WPA2, WPA, WEP), just nothing works for HD2 Android. >> Conclusion: not the WiFi router at home, just HD2 Android working with this particular WiFi router.
Finally (but forgot what app it was), I saw the USB port binding to 192.168.20.x subnet, exactly the same as my LAN subnet in the WiFi router.
Bingo, changed the LAN subnet to something else (really anything is fine because it is inside a NAT so not an issue getting out to the Internet) and HD2 Android works like a charm.
Hope this helps.
sorry, can you explain more where to change in the router settings? i can't find anything to change in my wireless settings
Look up the LAN (local area network setting) in your router, where the IP address for most WiFi router is set to use 192.168.0.1
In my case the WiFi router is set to use 192.168.20.1 (and DHCP to pass out 192.168.20.x IP addresses).
By changing the IP address of the router, most router automatically change the DHCP assignment to corresponding subnet, say from 192.168.20.1 to 192.168.x.1
x can be any of 0 to 255, just not 20 for my case or it causes conflict with HD2 Android.
Hi Dear friend , And Thanks for sharing experiences.
I have the same problem , but my router's setting is :
IP Address : 192.168.1.1
and my Starting IP Address : 192.168.1.100
IP Pool Count : 101
DHCP : Enabled
NAT : Enabled
Default Route : YES
but no webpage loaded , the weather not work . but the meebo messenger
with my yahoo ID just worked .
so how can i fix it ?
tnx
I notice the conflict (with my 192.168.2.x) when I checked the HD2 IP addresses (after connecting to the WiFi). When I see the USB port bound to 192.168.2.x I know the two just conflict with each other.
If something (meebo messenger?) works but not others... could it be your HD2 not getting name resolution (DNS ?). Say if you try opening this do you get the Google page:
http://74.125.153.104/
** This is Google's page without the need to resolve via DNS.
webmice said:
I notice the conflict (with my 192.168.2.x) when I checked the HD2 IP addresses (after connecting to the WiFi). When I see the USB port bound to 192.168.2.x I know the two just conflict with each other.
If something (meebo messenger?) works but not others... could it be your HD2 not getting name resolution (DNS ?). Say if you try opening this do you get the Google page:
http://74.125.153.104/
** This is Google's page without the need to resolve via DNS.
Click to expand...
Click to collapse
hi my friend. I tested it with IP but nothing changed.
but some of the WebSites with SubDomain Loaded. like : http://2.farsihiphop.com
and can u tell me how can I know about the port nimber . like USB port.
i think my Android's Kernels have been changes. maybe i'll can find something like this (equal IP address)
thanks.
I have following problem : At my university i have hidden Wifi network, locked with password.. But, ofcourse, we cracked their password, and now we can use their WiFi.. But i cant use it.. On WM i could use it .. One more thing to mention, there is a proxy u need to setup before u can go on internet trough that Wifi network.. but thats not my concerne yet.. I cant get connected to that Wifi.. I make new conn, with password and other settings, and it keep saying : Connecting... Disconnected...
Any ideas to help me ?
Thanks in advance
I had the same problem. I solved it by updating the radio to version 2.14.50.2. I think this version works best.
For me 2.15.50.14 works, too...
Hello, been a long time reader from my G1 to my G2 and now my nexus 4.
I am unfortunately not able to use my device on certain wifi networks which is a real bummer.
Being that i have a background in diagnosing computer problems in my real world life, i thought i would post my findings as i found some interesting things!
First i will say that the network i will use as the demonstration is secured with WPA2 PSK AES security and encryption.
I can connect to it and often find i have problems on the first connect to the network. By this i mean if i have made my wifi settings 'forget the network' and then try to connect again.
On the first time it seems to indefinitely hang, showing the message 'authenticating' on screen next to the network and if i long press on the network name and press modify, the dialog shows that i have a link speed of 1mbps.
I can usually get past this by turning wifi off and on and then reconnecting, at which point it will connect straight away and have a normal link speed. (in this example 72mbps).
After i am connected, i find that the following does not load:
-browsing webpages through chrome does not load
-the wifi icon turns grey
-play store cannot load anything
I find that i get assigned an ip address by dhcp correctly too with the right gateway and dns.
I decided to download a network tool to have a better look. I use fing personally.
I found it very interesting what i found, which no other threads about wifi issues mention.
Network discovery found every device on the local wifi network.
I was able to scan the services of my computer which is also on the network and it found everything, including a http server which i run which i could browse to.
In fact i could do everything through wifi with this device and most others.
Again it got interesting when I then took a look at my gateway, the router.
I had discovered its mac address which i can verify through my computer is correct which to my understanding, being that i can communicate through the wifi, means that i have the information available to send information to that physical device?
When trying to scan services, i find nothing, which is not true, at the very least it exposes a http server on port 80 which my computer can access.
When trying to ping i have 100% packet loss.
So at this point it is only the gateway i cannot access.
So i figure i could setup another computer which is connected to the network with a wire to share its connection through wifi onto that network and then i have a standin gateway?
I connected this computer through wifi to the network and pinged it succesfully with my phone. I then turn ICS on my wired adaptor to share to my wifi adaptor. I ensure that the wifi maintains an ip address in the right range and subnet.
I then try to ping that ip with the phone and it then gets 100% packet loss.
Could this be that when a device is configured to act as a gateway something changes about how it handles any packets sent to it that the nexus 4 is currently in compatible with?
elltg said:
So at this point it is only the gateway i cannot access.
So i figure i could setup another computer which is connected to the network with a wire to share its connection through wifi onto that network and then i have a standin gateway?
I connected this computer through wifi to the network and pinged it succesfully with my phone. I then turn ICS on my wired adaptor to share to my wifi adaptor. I ensure that the wifi maintains an ip address in the right range and subnet.
I then try to ping that ip with the phone and it then gets 100% packet loss.
Could this be that when a device is configured to act as a gateway something changes about how it handles any packets sent to it that the nexus 4 is currently in compatible with?
Click to expand...
Click to collapse
I have found a bit of a workaround that i can use!
When i said i turned on the wifi and ICS i did the following:
-Turned on wifi.
-Connected to wifi network.
-Turned on ICS on my wired network to share to my wifi
-Observed that my ip changed from 192.168.10.x to 192.168.137.1 with no gateway or dns.
-I decided to change my ip on the wireless to 192.168.10.x and gateway to my router 192.168.10.10
-I then tested.
I ran through this again but slightly different:
-Turned on wifi.
-Connected to wifi network.
-Turned on ICS on my wired network to share to my wifi
-Observed that my ip changed from 192.168.10.x to 192.168.137.1 with no gateway or dns.
-I decided to change my ip on the phone to 192.168.137.5 with gateway and dns as 192.168.137.1
-I then tested. And it works!
I know this doesnt fix the wifi issue itself, but for me, this makes a big difference as i can now use wifi at work where we also have poor mobile network coverage.
Edit:
Additionally i previously tried to setup this same computer to host a wifi network to share the connection using 'netsh' and creating a 'hostednetwork' but i found i was in the same situation where i still couldnt get the internet.
I just got the phone and it won't connect to my router i've done just about everything i've tried everything and i still can't seem to be able to connect to my wifi please help
rTek said:
I just got the phone and it won't connect to my router i've done just about everything i've tried everything and i still can't seem to be able to connect to my wifi please help
Click to expand...
Click to collapse
It might be a problem with the router itself, or the passphrase you're entering could be incorrect? Please try connecting the phone to another WiFi hotspot when available and see this works.
the problem might be with the router because i was able to connect to the router where my dad works, but my home one it won't.
I use belkin router and not sure how to fix it anymore though
Some basic troubleshooting questions:
1. Can your phone connect to other routers? If so, are they secured or open?
2. Can other devices connect to your router reliably?
3. Is the error actually that it fails to obtain an IP or that it fails to connect or authenticate? IP address assignment happens after successfully authenticating with wireless security, so if the actual error is that it can't obtain an IP, that implies that something is wrong with your DHCP configuration, likely on the router.