I'm trying to use my G1 to allow my laptop access my employer's VPN (PPTP) and can't make it work. There's a defect logged with android-wifi-tether so apparently I'm not the only one having this problem. I've tried the USB tether built into cyanogenmod and can't get in that way either.
Anyone have any ideas or personal success? Anyone want to confirm that I just can't do what I'm trying to?
thanks,
--e
I believe that the correct approach is to have the phone itself NOT part of the VPN, tether the computer to the internet via the phone, and initiate the VPN from the computer itself.
Is that what you are trying? Or are you trying to VPN the phone and just tether?
i was able to get on vpn network though wired tether ..i have super d1.8..not sure why you cant.
Thanks much for the replies, I really appreciate it.
I haven't tried logging into the VPN with the phone itself because I didn't figure that would get my laptop on the VPN (though I could try that).
I am connecting to the internet using the phone either as a modem (USB tether) or an ad-hoc network (android-wifi-tether) and the internet works beautifully except that I'm not able to log into the VPN.
I'm getting an error 721 and my android-ignorant IT geek is grumbling about GRE and NAT and blocked ports and goodness knows what else.
rshemeld - what method are you using to tether? do you know if your VPN is using PPTP?
Thanks!
--eric
Hey there!
I'm not a VPN pro, but PPTP error 721 generally means that GRE is being blocked somewhere along the line. This could be the router (in this case your phone) or an upstream router (your wireless providers router). One way to test is to connect to the VPN with the phones built-in PPTP client like someone suggested, that would at least narrow down the problem.
If the problem turns out to be that your phone is blocking the GRE packets then you'd need to port forward port 1723 on the phone to your local machine and also protocol forward (note that this is a protocol forward, not a port forward) protocol 47, which is GRE.
EDIT:
iptables -t nat -i your_radio -p tcp --dport 1723 -j DNAT --to your_computer
iptables -t nat -i your_radio -p 47 -j DNAT --to your_computer
Click to expand...
Click to collapse
EDIT2:
Ignore the above code, its for setting up a server behind your NAT not letting a PPTP client through the NAT. Not sure what I was thinking.
--e said:
I'm getting an error 721 and my android-ignorant IT geek is grumbling about GRE and NAT and blocked ports and goodness knows what else.
Click to expand...
Click to collapse
I wouldn't expect much help from a windoze-monkey-button-pusher. They don't include brains in those.
ivanfilippov said:
Hey there!
I'm not a VPN pro, but PPTP error 721 generally means that GRE is being blocked somewhere along the line. This could be the router (in this case your phone) or an upstream router (your wireless providers router). One way to test is to connect to the VPN with the phones built-in PPTP client like someone suggested, that would at least narrow down the problem.
If the problem turns out to be that your phone is blocking the GRE packets then you'd need to port forward port 1723 on the phone to your local machine and also protocol forward (note that this is a protocol forward, not a port forward) protocol 47, which is GRE.
EDIT:
Click to expand...
Click to collapse
Wow, I'm your new biggest fan. I'll get the VPN info from my geeks and verify that the phone itself can get on (I suspect it'll be able to).
The code you posted, do I enter that in the terminal application on the phone? Or should I boot to Aman-Ra and use that terminal?
Thanks for your patience and your help, everyone.
--eric
lbcoder said:
I wouldn't expect much help from a windoze-monkey-button-pusher. They don't include brains in those.
Click to expand...
Click to collapse
lol, he means well
Yeah i set a profile up first(on my PC) i am not using the vpn client/rsa token.
Hey!
Yep put that in your phone terminal. I'll see if I can get a more concrete example for you.
EDIT:
Oops, my iptables lines were totally wrong, ignore those. I just did some testing and realized what I posted was not set up for what you needed. Let me try a couple things here with my PPTP and I'll let you know how it goes.
EDIT2:
I've tried a couple ways and I'm not able to connect to both of my PPTP servers directly from my phone (I'm guessing this is Rogers' doing, or a big blunder on my part), so I can't help with too much more troubleshooting, but try getting on your PPTP server with just your phone and if that works. If it does then you can most likely get on it with your laptop behind your phone. You might not even need any iptables rules, but like I said I can't really test it for you. Good luck.
Solution, see cross link
See http://forum.xda-developers.com/showpost.php?p=33749904&postcount=10
Related
Hello all,
I have been successful in loading the WM6 ROM: works great! I have been successful at using the phone for Bluetooth DUN. I have been successfull at setting up a VPN connection to my place of employment: I can look at the RRAS server GUI and see that I have established a viable connection.
What I have NOT been successful at is getting Remote Desktop to work. RD is one of the reasons I upgraded to this ROM. Has any one been able to get their Windows desktop on their Treo? If so, how did you do it?
I can't seem to find any pertinent information on how to make this work so anything you can tell me would be a great help.
Cheers,
idyllic
http://forum.xda-developers.com/showthread.php?p=1453117#post1453117
http://forum.xda-developers.com/showthread.php?p=1451613#post1451613
joannaex said:
http://forum.xda-developers.com/showthread.php?p=1453117#post1453117
http://forum.xda-developers.com/showthread.php?p=1451613#post1451613
Click to expand...
Click to collapse
Joannaex,
thank you for the forum pointers. Alas, they did not help. I did try to load the cab file from one of the threads, but it loaded the same version of Remote Desktop Mobile that I already had. I still get the same errors encountered with the previous version. Maybe this behavior is due to the "unofficial" ROM not being fully functional in some way? I don't know. It would be interesting to hear from someone that actually got this to work.
Cheers
idyllic
PS: in occurs to me that this might be a routing issue in the 10.x.x.x/192.x.x.x space. I could verify this if there were a command prompt where I could run things like ipconfig, tracert, netstat, etc. Or a log file that could be viewed. Just wishful thoughts I suppose
PPS: Just found two great progs, one called VXIPCONFIG which give you the info you would get in you did an ipconfig /all. The other is called VXUTIL which you can do PING, TRACERT, WHOIS and a lot more. The utilities are available from http://www.cam.com/windowdsce.html.
I have been able to connect to remote desktop. What has been successful for me has been to already initiate my 3G connection then connect using remote desktop. It doesn't seem to be able to start up the connection itself.
andokai said:
I have been able to connect to remote desktop. What has been successful for me has been to already initiate my 3G connection then connect using remote desktop. It doesn't seem to be able to start up the connection itself.
Click to expand...
Click to collapse
andokia,
I am doing the exact same thing: starting my 3G connection, then my VPN connection, and lastly Remote Desktop Mobile. The RDN ALWAYS times out with one of these two errors: "Connection Status - Cannot Connect. Likely reasons are: 1. Specified computer name or IP does not exist, 2. A network error occurred while establishing a connection." So, I'm kind of at a loss here as the troubleshooting tools available are not great. Thank you for the response!
Cheers,
idyllic
Hi idyllic,
Can you access a remote desktop when a VPN session isn't active? I have used the two separately without problems but haven't tried them together.
andokai said:
Hi idyllic,
Can you access a remote desktop when a VPN session isn't active? I have used the two separately without problems but haven't tried them together.
Click to expand...
Click to collapse
andokia,
no, I cannot access any system. I have tried my home system (firewalls turned off and on). I have tried my work systems (VPN on and off). Nothing seems to work. It's really frustrating to have a tool that you know can help you, but it doesn't work: aaaaaaaaaaaahhhhhhhhhhhhhhhhhhhhhhhh!
Cheers,
idyllic
I'm assuming you're trying to use a local address because you are connecting with vpn first. Did you put the local address in the exceptions list? If not the vpn connection will disconnect anytime you try to use an address that is not in the exceptions list.
Exceptions list: start\settings\connections\connections\advanced\exceptions
then add the local url
Hope this helps. Used to be the problem I had when trying to use VPN.
chris44gw said:
I'm assuming you're trying to use a local address because you are connecting with vpn first. Did you put the local address in the exceptions list? If not the vpn connection will disconnect anytime you try to use an address that is not in the exceptions list.
Exceptions list: start\settings\connections\connections\advanced\exceptions
then add the local url
Hope this helps. Used to be the problem I had when trying to use VPN.
Click to expand...
Click to collapse
chris44gw,
yes, I'm trying to connect to a local addres, but that address isn't a URL. The address I'm entering is an IP address of the machine for which I want to get a desktop. Now maybe I'm wrong, but my understanding is that I can use Remote Desktop Mobile to get, say, a desktop/console of one of my servers.
I've been able to surf the web on the phone, I've been able to use the phone as a Bluetooth modem, I've been able to connect to each of my companies VPN servers. Still now desktop. Whether I enter a fully qualified domain name or an IP address it never works.
Now, I have a little more information. If I just connect to the AT&T 3G network I can do a traceroute to the VPN servers. If I then connect to the VPN (PPTP connection verfied and active) I CANNOT ping anything on the corp. net. It has to be a routing issue I'm thinking. It seems that it needs to be fixed on the phone side, but I can't seem to figure out where to do this.
Anyway, I appreciate the pointer about the URL exception list.
Cheers,
idyllic
That's what mine looks like. Once I'm connected vpn wise into my 2003 server I can RDP into it and another XP machine on the network through the local IP. Only thing I can think of is if you have activesync connecting to an exchange server. It might disconnect the vpn. I think you've said you're verifying the vpn connections so I might look into the firewall on the computer or make sure RDP is on for the computer (although you've probably done that). Good luck though.
chris44gw said:
That's what mine looks like. Once I'm connected vpn wise into my 2003 server I can RDP into it and another XP machine on the network through the local IP. Only thing I can think of is if you have activesync connecting to an exchange server. It might disconnect the vpn. I think you've said you're verifying the vpn connections so I might look into the firewall on the computer or make sure RDP is on for the computer (although you've probably done that). Good luck though.
Click to expand...
Click to collapse
chris44gw,
thank you for the screen-shot. I gave this a try, but no luck. We don't use exchange servers at work and I've verified that no active sync is active during the connect process. Having downloaded a couple of tools to help troubleshoot, I've noticed that I CANNOT ping anything on the internal network: this after verify that the VPN connection active and viable. I have also verified that each system that I am connecting to has RDP turned on. I guess I'll just keep experimenting. I just can't help but think that there is ONE LITTLE THING that is keeping this from working.
Cheers,
idyllic
PS: What encryption level does the Treo 750 VPN app use? 56bit? 128?
PPS: Upon further testing... when I connect to the RRAS server (and connecting to the RRAS server has NEVER been the problem) on the West Coast (Windows 2000 Server std. SP4) I cannot ping the "inside" network. When I connect to the East coast RRAS server (Windows Server 2003 SP2) I CAN ping "inside" network. In either case I still cannot get a remote desktop.
Have the same problem on Diamond
Hi all,
After upgrading to wm6.1 on O2 Diamond unable connect to Remote Desktop.
When manually connected to Internet it works perfect, but from RD Client there is always an error (dial up or Proxy settings). All other programmes can always correctly initiate internet connection via GPRS/UMTS. Via Active sync RD works always.
MFG
Sorry, never got it to work. Call me a traitor, but I now have an iPhone and everything works the way I expect it... with two major exceptions: 1. no cut-and-paste, 2. can't be used as a tethered modem without jail-breaking the phone (which I'm not willing to do).
--idyllic
Similar problem HTC Touch HD
Hi all, sorry in advance if my problem ends up being because I've missed something basic; I'm trying to setup RDC on my HTC Touch HD with no luck. Computer name is right, password is right, IP is right. Fail message:
"connection status. cannot connect. likely reasons are: 1. specified computer name or ip does not exist. 2. A network error occurred while establishing the connection."
I'm connected to my WiFi network which also has the machine i'm trying to connect to on it. I've also tried when out of network range, connecting via 3G/HSDPA. Steps I've taken:
-Enabled remote desktop in system properties on target machine. Haven't added any remote users as it already allows me (admin on target machine) and I'm using those login details to access.
-Allowed RD in the packet settings of Kaspersky antivirus, using the address as the ip of my mobile, found by going to whatsmyip.com, and name as the name I've set on the device.
-Probably unrelatedly, I've also allowed the HTC to access the wifi through the MAC address access list
I can connect via a standard windows machine on the same router (which just needs the computer name, not the IP). Have found this useful as I had the details around the wrong way, but even now it's not working. Based on the tips in the link above, I'm under the impression that I should set things up thus:
Computer: the ip address of target machine
User name: EITHER my username OR MACHINENAME/User Name, e.g. John Smith OR JOHNSPC\John Smith
Password: pw
Domain: either machinename or blank.
Anyone know if this is right / which of the options for username and domain is right?
Cheers
Dez
I've been struggling with OpenVPN on my Vario III on T-Mobile and hope someone can throw me a bit of a lifeline.
I can connect to my OpenVPN (running on my WRT54GS router) via wifi but the problem is when I try over 3G. Even when I've specified the provider and ticked "exclusive", it manages to connect to my OpenVPN server but I get no further connectivity (to webpages etc).
As said, via wifi this config on my Kaiser works perfectly...
Code:
remote xxxxxx.homeip.net
port 22
dev tap
secret "\\Program files\\OpenVPN\\config\\secret.key"
proto tcp-client
resolv-retry infinite
nobind
comp-lzo
cipher AES-256-CBC
route gateway 192.168.xxx.xxx
redirect-gateway
dhcp-option DNS 192.168.xxx.xxx
but when tried via 3G it seems to have a problem with setting the routing..
Code:
Mon Oct 22 21:58:00 2007 ROUTE: route addition failed using CreateIpForwardEntry: The parameter is incorrect.
Just wondering if there is something either with the T-Mobile network or the Vario III which is specifically stopping me from using OpenVPN
Or are my settings misconfigured?
I've also attached a full copy of the log.
Thanks for any help you can give (Give generously)
CP
Sounds suspiciously like a NAT traversal or proxy issue to me. On the HSDPA network, there's a proxy in the picture. I don't believe that's the case for the Edge network. That could easily be the cause of the problem.
Surely once the connection has been established the NAT issue shouldn't be a problem?
TBH I thought the route addition problem was due to the software being unable to update the local routing table?
NAT traversal issues often manifest themselves as connections that look like they're established, then die immediately. The VPN participants have to know the actual IP addresses of the devices involved, and understand that NAT is happening. Proxies also need to play a role in that process since they're effectively "standing in" for your device. And they may be configured not to permit IPSec traffic at all.
What you've described sounds exactly like NAT traversal issues - the negotiation appears to go just fine, but the actual connection dies on the vine. Since the end points don't have the right data from the negotiation (actual valid addresses to build the tunnel around), the route they try to build is invalid and fails.
In your log, it's impossible to tell since the IP addresses have been all translated to xxx.xxx.xxx.xxx. But I suspect that the ones up until the "TCP connection established with..." message are all displaying valid public IP addresses, and somewhere very shortly after that they start displaying private RFC 1918 addresses.
Proxies + NAT +IPSec = small nightmares. This is one of the reasons SSL VPNs have gained significantly in popularity.
Try Hamachi vpn
https://secure.logmein.com/products/hamachi/vpn.asp
Surur
PerfAlbion said:
In your log, it's impossible to tell since the IP addresses have been all translated to xxx.xxx.xxx.xxx. But I suspect that the ones up until the "TCP connection established with..." message are all displaying valid public IP addresses, and somewhere very shortly after that they start displaying private RFC 1918 addresses.
Click to expand...
Click to collapse
You have PM
Quick update:
I've just connected my Laptop to the internet via my Kaiser using 3G.
Ran OpenVPN and it connected without a problem.
Technically this would suggest that I should be able to connect with my kaiser but theres either a problem with my config or a bug in the PPC openvpn software :S
I haven't tried on UDP yet which will be my next test....
Any ideas?
Blimey, I didn't know there was a PPC client! I'll try it to see if it works with my setup.
Well I can't even get it to talk to my server so won't be able to help !
Fire up the card in your laptop and take a look at the IP address assigned to your machine. Since it's a different service, they may not be passing you through the proxy that's in place for the Kaiser. If you've received a public address, then you're on a "different network" even though both are 3G services.
PerfAlbion said:
Fire up the card in your laptop and take a look at the IP address assigned to your machine. Since it's a different service, they may not be passing you through the proxy that's in place for the Kaiser. If you've received a public address, then you're on a "different network" even though both are 3G services.
Click to expand...
Click to collapse
?? When you connect a laptop via BT to the kaiser, (using internet sharing) it creates a NAT which the traffic is passed over through the 3G service. Essentially using the same service..
Unless you mean the "service" between the windows software & the PPC/WM software is different?
Plus how'd you mean fire up the card in my laptop?
Cheers for your help on this btw.
I'm assuming that the Laptop data service and the PDA data service are treated differently within the AT&T network. While the PDA passes through a proxy, I suspect the laptop does not.
When I say "fire up the laptop card," I mean establish a connection and look at your IP address (ipconfig from a command prompt will show it). It may be a different IP address range than the PDA receives (which you could see using VxIPConfig or VxUtils). Even if it's within the same range, it may be bypassing the proxy.
So while you're using essentially the same technology, I suspect the services are implemented very differently, and that's what we're trying to sort out.
I dont believe it!!!
I downloaded VM Net Brower checked what IP addresses were being assigned and connected successfully! Loaded up www.whatismyip.org and it came up with the proxy of my PC at home.
Unfortunately, my phone was running incredibly slow and thought it best to do a soft reset... afterwards no matter what I do, I can't connect. I just cant figure out why or replicate what I did
Argh.. this is getting to me now... next on the agenda is to try changing the port number from 22 to 8080 or 80 and see what happens.
I want to ask anyone with better knowledge of the android os for help.
I need to be able to connect to ADHOC networks. I have a laptop with LAN internet connection and I want to connect my G1 to the laptop's wi-fi. I used to do that with windows mobile.
YES I know there are similar topics, but they are all abandoned and ignored.
I almost feel that it's forbidden to talk about that.
WHY I need that. I live in a country with NO unlimited data plans and very expensive mobile internet. That's it. I want to be able to sync, download and watch youtube while relaxing on the sofa at home without pennies dropping off my pockets for every tiny byte I download.
OK HERE's THE SOLUTION. Thanks to everyone who made the great tutorials available to us :
http://hydtech.wordpress.com/2009/09/14/how-to-connect-to-ad-hoc-networks-using-tmobile-g1-android/
The important part is to tweak the windows part - you need to tell the broadband/adsl internet connection to share itself to the Private wireless network (the network manging your Wireless adapter). If you are having trouble with the windows part (say you connect and have full bars on the phone but no access to web) google ICS (internet connection sharing) in windows and you should get it working.
*Important notice: AdHoc will drain your battery very fast (1hour tops)
Maybe one of the reasons they disabled it... If you cant cope with taht - get a router. I'm cheap and I'm using it like that
Possible solution
I downloaded aNETSHARE - a free aplication for wifi tethering posted on this forum as well. Inside the apk there is a tiwlan_ini file which might be executed when running the app so you can create adhoc connection on the phone. I have replaced the /etc/wifi/tiwlan.ini with this file and tonight I'm gonna try it on the laptop, but I guess it will only enable creation of adhoc networks on the phone.
Am I talking to myself?
I it's not the tiwlan.ini to be edited. There is a wpa_suplicant.conf file where the AP are stored. I will edit it tomorow and see if it works. Helloo unix gurus. Have some mercy on my mortal soul and help a little.
axlastro said:
I it's not the tiwlan.ini to be edited. There is a wpa_suplicant.conf file where the AP are stored. I will edit it tomorow and see if it works. Helloo unix gurus. Have some mercy on my mortal soul and help a little.
Click to expand...
Click to collapse
wish i could help, by the time someone does youll of figured it out lol
axlastro said:
I it's not the tiwlan.ini to be edited. There is a wpa_suplicant.conf file where the AP are stored. I will edit it tomorow and see if it works. Helloo unix gurus. Have some mercy on my mortal soul and help a little.
Click to expand...
Click to collapse
You do want to use a modified tiwlan.ini, but do not replace the system one.
Simply create a new one somewhere and use a command like this
Code:
insmod /system/lib/modules/wlan.ko
wlan_loader -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration -i /data/local/tiwlan.ini
netcfg tiwlan0 dhcp
setprop net.dns1 208.67.222.222
The last two lines are to set up the proper IP address and dns server.
the backend of the wifi config gui uses wpa_supplicant. simply edit this and add whatever type of wireless connection you want. this is how we obtained wpa2 enterprise support. it was capable, the gui is just setup, for some reason, to ignore wpa2 enterprise/adhoc/whatever networks.
here's the original post from forever ago
http://forum.xda-developers.com/archive/index.php/t-450915.html
... Wouldn't it be easier to turn your laptop into an Access Point?
Assuming you are under Windows, you can enable ICS (Internet Connection Sharing) and then use your G1 to connect to that.
Many people do the same to connect their XBOX360 for example to their laptop or computer to go online.
NeoBlade said:
... Wouldn't it be easier to turn your laptop into an Access Point?
Assuming you are under Windows, you can enable ICS (Internet Connection Sharing) and then use your G1 to connect to that.
Many people do the same to connect their XBOX360 for example to their laptop or computer to go online.
Click to expand...
Click to collapse
This is what he's trying to do. The thing is, by default a G1 does not see/connect to Ad-hoc connections, which is what the ICS setup will create.
All the information he needs to get his G1 to see/connect to Ad-hoc networks has been listed in this thread by now. Whether or not he will read any of it is another story.
Aaaahh... My bad. I thought the programs already had such a feature >_< Would be interested in this also incase I don't have any signal for whatever reason.
billc.cn said:
You do want to use a modified tiwlan.ini, but do not replace the system one.
Simply create a new one somewhere and use a command like this
Code:
insmod /system/lib/modules/wlan.ko
wlan_loader -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration -i /data/local/tiwlan.ini
netcfg tiwlan0 dhcp
setprop net.dns1 208.67.222.222
The last two lines are to set up the proper IP address and dns server.
Click to expand...
Click to collapse
Thank you! I needed some help on that.
So if I create a internet connection in XP I have to specify a dns there and then enter the same dns in the last line, right?
I actually replaced the system tiwlan.ini (i kept the original) with the one from the aNETSHARE.apk but as expected it created an AP on the G1. I guess I will have to modify the WPA_SUPPLUCANT.CONF too. it should be something like
SSID="test adhoc"
MODE=1 (i think 1 stands for adhoc)
and some other lines i dont remember like the encryption mode and frequency. There are plenty of sample config files. Tonight I will try to do it.
But the question is - what do I modify in tiwlan.ini - is it only the line adhoc=0 to adhoc=1 enough or should I specify ip address and dns there too.
btw I did configure an adhoc network using the wifiHELPER app but all it did was add it to my wifi connections list without being able to see it. The only option was to "forget" the network.
Anyway. I think you helped enough, I will figure read the thread pointed by breaultm. Thanks. I actually couldn't find this very thread cos I searched with "adhoc" as a keyword. Thank you again. I really don't see why they omitted the support for this type of connection. My guess - either a security concern or they just want to make you pay for data plan.
Some reason you don't just use a wireless access point? They're DIRT CHEAP... for example: http://www.infonec.com/site/main.php?module=detail&id=352591 -- thats a wireless router (just disable dhcp server and don't use the wan port) PLUS a wireless nic for $34 CDN.
lbcoder said:
Some reason you don't just use a wireless access point? They're DIRT CHEAP... for example: http://www.infonec.com/site/main.php?module=detail&id=352591 -- thats a wireless router (just disable dhcp server and don't use the wan port) PLUS a wireless nic for $34 CDN.
Click to expand...
Click to collapse
Well, I know. The cheapest routers are like 35 USD here in Bulgaria. Why not buy one? Call me cheap, but I'd better buy a bigger sd card first (I use a 4gb one now). I used to connect wirelessly with a pocketPC to the laptop and the connection was very stable. If I can't manage to connect the hard way then I will buy a router...
hi
i have this application and whenever i try to set up and connect to the specified ip address it tells me socket is not connected
what does that mean and how can i fix it?
zidane said:
hi
i have this application and whenever i try to set up and connect to the specified ip address it tells me socket is not connected
what does that mean and how can i fix it?
Click to expand...
Click to collapse
Make sure that you open up the port on your computer's firewall, your router, and anything else that might have a say in your internet traffic.
I'm not going to explain it, but Google "port forwarding".
im in the campus dorms
i dont think i can do any port forwarding as i dont know how the whole lan thing is set up here
thanks
i am currently having the same problem ...i have forwarded the port 5900 on my router and opened up my firewall...could i possibly have to do something to the modem as well or could it be something else
i am on a I touch 3g slide and running windows xp home
i have also heard that port tunneling may be neccesary but i lack the knowledge to do so any help would be appreciated
its all about port forwarding because you have dynamic ip addresses on the LAN side and most likely you have a dynamic WAN ip also. Usually to do VNC you have to have a Public IP address. Home ADSL circuits provide one public ip address but out of a NAT pool so it will change. This could cause an issue unless you want to check the destinations ip address everyday. So instead of VNC to an ip address you can vnc to a host name. Dyndns provides a good service for free. So that solves the dynamic IP issue.
Now to the port issue. Since the internal LAN will assign each host a 192.xxx.xxx.xxx ip address (which are not publicly routed), you have to do port forwarding. To do this go to the command prompt (start>run>cmd) and type in "ipconfig /all" and press enter. Find the default gateway ip address (192.xxx.xxx.xxx). Type that into the web browser. That will log you into your router. I have a 2wire router provided by att so if you have different you will have to discover this on your on. Go to firewall settings and then add a new user-defined application. basically make a new application.
protocol tcp
port range 5900 (i believe that is right)
and then add it to the correct computer.
That should send all data on that port to that host.
Hope that has helped a little bit. if not, google it.
you can also try
http://forum.xda-developers.com/showthread.php?p=7004664
i figured it out and have it working fantastic. u were completely correct i just wish i could have had your advice sooner ...kinda forest gumped my way to the answer.
i do appreciate it tho and have a better understanding of the grander scale now. thanks to all on xda that give their time to help
zidane said:
im in the campus dorms
i dont think i can do any port forwarding as i dont know how the whole lan thing is set up here
thanks
Click to expand...
Click to collapse
You may want to give up with that and try out PhoneMyPC. I'm not 100% sure of how they do their tunneling, but I can tell you I've tested it a few times and it always manages to get through even if I purposely change WAN ip addresses and I don't do any port forwarding for it.
It also runs way faster (albeit lower resolution, i think) and more fluidly than either of the RDP or VNC solutions I tried out. I'm very impressed with it so far. I can even jump online with it and pull up my security camera software and actually see the live video feed from it, all running on my PC at home, even just over a 3G connection.
I'm using an XT862 on Telstra 850MHz 3G here in sunny Oz and can't get the tethering to work.
I've tried it with and without root and I'm now on the leaked update and still no joy.
The data connection is fine and I can browse on the phone directly both before starting the hotspot and after. My laptop or iPad both connect and get DHCP addresses but can't get any data.
Has anyone else got this working?
It works fine here in Germany, at least for me. I'm using stock tethering.
I have no idea why it doesn't work for you. Does DNS and ping work?
What output do you have with "ping google.de"?
Dns works using the phone as the dns server, any external dns server fails. Ping and http traffic all fail. When I start the connection, the 3G connection drops and reconnects. Skype disconnects then reconnects on the phone.
It's got me stumped. The sim worked in my Sony xperia play before it was in this phone.
So I got you right, from your laptop, DNS works but no ping?
Is your phone rooted? If yes, open a shell (with Connectbot or so) and type "iptables -t nat --list". Do you see the line with MASQUERADE?
Thats right. Dns works IF I use the phone as dns server. Ping never works from the laptop. Yes the phone is rooted.
Listing the Nat tables, the three are all blank. Pre route, output and post route all have no rules.
my d3 on TPG (Optus network) tethers fine
were you able to tether with your xperia play? it could possibly be telstra blocking tethering
NaVVy said:
Thats right. Dns works IF I use the phone as dns server. Ping never works from the laptop. Yes the phone is rooted.
Listing the Nat tables, the three are all blank. Pre route, output and post route all have no rules.
Click to expand...
Click to collapse
I think this is at least one reason it doesnt work. Can you try this command (after establishing tethering):
iptables -t nat -I POSTROUTING -o ppp0 -j MASQUERADE
Before the d3, I could tether on my xperia and before that on my atrix.
It seems like the d3 isn't loading the Nat/routing tables properly. I haven't seen any network traffic return from the phone to the laptop except for dns from the phone. Even dns from other servers doesn't get through.
rweb said:
I think this is at least one reason it doesnt work. Can you try this command (after establishing tethering):
iptables -t nat -I POSTROUTING -o ppp0 -j MASQUERADE
Click to expand...
Click to collapse
This seems to have worked. Web browsing from my iPad works. I'll check more tomorrow from my laptop but I wonder why it wasn't loading the correct tables itself?
NaVVy said:
I'll check more tomorrow from my laptop but I wonder why it wasn't loading the correct tables itself?
Click to expand...
Click to collapse
I have no idea. Most likely some bug, but I don't know why you are running into it while I don't.
I wonder if the iptables line disappears when you stop tethering (mine does). I don't think it hurts if not. If yes you have to re-enter the iptables command after each tethering. You could write a little script and create a widget for it with the App "Script Manager". It's at least a workaround.