How to open ports? - G1 Android Development

Hello,
I installed debian on the JF 1.5 I'm running on my phone, then I installed (in Debian, of course) OpenSSH Server.
Now, when the phone is connected to my LAN via Wifi, I can SSH it to its IP address even from my PC, and login to Debian... like to a real computer
I'd like to open inbound connections to port 22 on Android, to allow me connect with SSH also when it's on 3G network, using the IP that was assigned by mobile carrier. How I can do it?
Thanks in advance!

I don't think open port on phone do anything.
the blocking is on your operator network. they have firewall too.

Maybe my operator doesn't? I'm using Tre (Italy). What I can do to test it?

Up Up, please

but most mobile operators use private address + proxy scheme. how could you bypass that? (even if the client is also in the same mobile network, your carrier is very likely to implement subnet isolation for security reasons.)

Related

Internet Sharing+VPN WM6 problem

I cant figure it out, I just installed the latest v. WM6 Rom (http://forum.xda-developers.com/showthread.php?t=297256)
Internet Sharing via Bluetooth works but... when i start my vpn either via ssl or ipsec (on laptop) NOGO. something is in between dont know what...so workaround:
Internet sharing via USB: the device tells me "connected", the new Network connection in control panel/xp tells me "connected" but there is no Internet connection. I try to ping 192.168.0.1 which it made gateway and this is not found. nothing nada. firewall off. nogo. repair. nogo.
*argh* I realize it are 2 different problem but in short: I can not connect as I usually did under the wm5 dialer (and I miss the status lights).
Anyone has a clue?
Hi !
I have the same problem with the same ROM. I didn't found any solution yet.
I didn't try Internet connection shring with Bluetooth. But your problem sounds as a proxy setting problem on your PDA connexion. You should take a look at those settings...
Let us know if you find anything.
edit :
Finally it's working, I re-installed ActiveSync 4.5 and now it's OK.
I reinstalled activesync, modded down to wm5, then again wm6 ...
and magic usb is working but...
My VPN connection on both BlueTooth or Usb is not working. I use the AT&T client to connect to our network but authentication fails with all vpn servers in the list.
That's a shame because this is really the only basic functionality i need to check my e-mail and stuff "on the road". Hmmm... down to WM5!
Unless someone has got VPN working?
I reinstalled activesync, modded down to wm5, then again wm6 ...
and magic usb is working but...
My VPN connection on both BlueTooth or Usb is not working. I use the AT&T client to connect to our network but authentication fails with all vpn servers in the list.
That's a shame because this is really the only basic functionality i need to check my e-mail and stuff "on the road". Hmmm... down to WM5!
Unless someone has got VPN working? Heres my errorlog:
21:24:55.190 Logon request sent to VPN server 111.11.111.222...
21:24:55.190 Wait for asynchronous action to complete.
21:24:55.230 A VPN logon message 1 was received.
21:24:55.230 Accessing digital certificate...
21:25:00.818 A VPN logon message 2 was received.
21:25:00.818 Negotiating encryption keys with the VPN server (111.11.111.222)...
21:25:02.290 A VPN logon message 3 was received.
21:25:02.290 Authenticating with the VPN server (111.11.111.222)...
21:25:22.349 The VPN logon response was received.
21:25:22.349 The local address is 192.168.1.78.
21:25:22.349 Last login error set to 118.
21:25:22.349 'LogonToIPSecTunnelServer' failed.
21:25:22.349 FSM error in state 'AuthenticatingTunnel'.
21:25:22.349 !Error 118 No response from IPSEC terminator during authentication. (error 118).
21:25:22.349 ---------- Change state to 'BeforeTunneling'. ----------
ah... I have it... stupid me.
sorry. stupid. forgot the checkmark on the authentication tab on the auto-created controlpanel > networkconnections > Windows Mobile 6 Connection > Authentication.
Great!
For reference, using the Cisco VPN client, with Bluetooth and internet sharing, does not work. With WM6, a Bluetooth PAN adapter is created on the PC, and the Cisco VPN doesn't bind to this type of adapter.
Using the same config, but with the USB cable, and the wireless modem, does work.
Unfortunately It does NOT work anymore.
Whatever I try I can not get connection to the Internet
- I start "connect"
- Plugin the usb cable
- The new network connections icon appears under network connections
- It pops up it is connected
- It has an assigned 192.168.0.2
But no internet connection, ping 192.168.0.1 can not be reached, etc...
I turned off the firewall to see if this was the problem. not.
Is there ayone who has got a clue? This is really frustrating.
For what it's worth, I'm using WM6 Black 2.5 on a Hermes (Cing 8525) and I'm able to use WM6 Internet Sharing via BT to connect my laptop to the internet and I am able to use my Cisco VPN client on my laptop to connect to my company's intranet. No problems here so I don't think it's a WM6 problem.... rather a configuration problem... either on your company's VPN concentrator side or your client side.You may want to chat with your IT/Ops dept for configuration settings.
No problems here nither. I use Vista on PC. I need to connect to several networks and just have made some tests. I could reach all of them. The fact is that most of them are built on Draytek routers not Cisco, but they also use IPSec and so on.
Yep I'm having the same problem, my VPN's worked fine with WM5, but went to Black 2.5 and now when I VPN, it connects, assignes me an IP, but wont let me ping the network.
I _think_ it's becuase now the fone shows up as a network rather than a modem, and assigns me a 192.168.0.x address, and the home network is in this too... any suggestions?
share internet connection with ppc
Can i use my ppc as the wireless adapter? do i need to use "wireless modem" or "activesync" to do this? For more detail, if my computer do not have wireless adapter, and now i want to use the wireless adapter on my ppc to connect to the internet. Is it posible?

Treo 750 WM6 T-Mobile and VPN

Hi all
I recently purchased an unlocked Treo 750 with use on T-Mobile. This replaced my 700w on Verizon.
I have internet working fine, MMS reprogrammed and working. However I seem to be having problems with VPN on the phone itself.
If I tether the treo to my laptop and use it as my internet connection, I can initiate the VPN client on my laptop and all is fine.
The problem is the VPN on the phone itself when using trying to use applications directly on the phone requiring VPN (ie without the laptop). I configured it, it connects fine, however when trying to use IE or remote desktop it fails to connect.
I get a 503 error in IE on each url I try through the VPN. Makes me think it's trying to hit a proxy of some kind outside of the connection manager.
I've also tried using internet2.voicestream.com as opposed to the default wap.voicestream.com... both function identical and at same speeds. I have the total internet add-on data package.
Remote desktop fails with network not found... which kind of hints at a proxy also.
Note that I do not have any proxies set in the Connections manager, makes me think there is something hard coded.
I have checked the registry for the AutoEnable thing for proxies, but in WM6 this is already set to a value of 1.
Any advice is welcomed
If it is a PPTP VPN connection you are probably screwed, it is slowly emerging that there is a problem with the implementation of MPPE used in WM for PPTP VPN connections. I.e. VPN connects but NO traffic Tx/Rx.
Best bet, try and get your IT to setup the PIX to use L2TP/IPsec I have heard numerous reports that there are no problems with the implementation standard of that VPN connection in WM5/6/6.1.

Remote Desktop Cannot Connect

Hello all:
(first of all, I apologize for the double post, I erred and replied to a thread in the diamond forum)
I'm having problems getting my remote desktop to work. Been trying to connect since I picked up my Fuze on the 11th.
I have three different computers that I can successfully administer via my desktop. I've tried using 3G to connect, no success. I've tried using Wi-fi to connect, no success. I've used local computer names, IP addresses, properly forwarded ports --
It has to be a setting I'm missing on the phone. Any ideas? TIA
What version of Windows are you trying to connect to? Do you have a Firewall? And have you done the port forwarding on the router?
But the only options you need is Computer: IP Address and the user name and password. Use a Domain if you are connecting to PCs on a domain. Also when I logged in not using 16bit color under options the PC was almost unusable.
My attempts
The things I have tried since my post:
1) attempting to connect to Windows Server 2003 machine, non-local. Used IP address with port, same IPort that works from my desktop. Left username/password blank -- filled them both in -- left the domain name blank -- filled it in. All failed. Get the error message with three possible causes listed. Connected to my home network via wifi, data connection disabled (sometimes causes problems with my internet browsing if they're both enabled)
2) attempted to connect to a local machine, running XP Pro. Again, tried all possible combinations of username/password completeness, no success. Using Wifi
My local router does have a firewall, and the remote router does as well. I can successfully navigate those using my desktop (or laptop, for that matter)
GTO: I appreciate the quick reply...thank you.
3daysaside said:
The things I have tried since my post:
1) attempting to connect to Windows Server 2003 machine, non-local. Used IP address with port, same IPort that works from my desktop. Left username/password blank -- filled them both in -- left the domain name blank -- filled it in. All failed. Get the error message with three possible causes listed. Connected to my home network via wifi, data connection disabled (sometimes causes problems with my internet browsing if they're both enabled)
2) attempted to connect to a local machine, running XP Pro. Again, tried all possible combinations of username/password completeness, no success. Using Wifi
My local router does have a firewall, and the remote router does as well. I can successfully navigate those using my desktop (or laptop, for that matter)
GTO: I appreciate the quick reply...thank you.
Click to expand...
Click to collapse
Okay its been awhile since I used 2k3 sever. Using 2k8 lately but are you trying to use Terminal Server? and if your using 2k3 and you have ISA enabled I know it can be a pain to do port forwarding with it. But let me get this stright. You have no issues using XPs Remote Desktop to log into the server machines Terminal Server/Remote Desktop? Here is an idea. Whatever port your running Terminal Server/Remote Desktop type the IP Address with a : and port. IE 192.168.0.1:3000
Also if you would like you can PM the IP address of one of the Machines and I will try from my phone that I know is working with my machine. I am pretty sure you don't need to end a user name or password and it will bring me up to the login screen or you can make a temp account. On also on the Win2k3 machine I am pretty sure you have to add the option to login with Terminal Server even if its the Administrator account.
I am able to connect to my local XP machine over wifi using the ip addy/no port. Hostname (DNS) connection attempt failed, though. My 2k3 server's power supply died or I would test that for you.
No special router config (port fwd) for my device had been done.
The fact that you can't get to your local box on your local network is where I'd start.
Local Network Issues
Thanks again to you both...
I think that might be the problem -- the local network setup. I can connect via wifi, and browse the web. However, I can't install a network printer using the WinMo app that's included, and I can't seem get to the local PC even when I use the local IP instead of the DNS name. I did check, I'm being issued an IP address by the router (obviously), but still no dice on anything relating to network based traffic.
Is there a way to ping using WinMo? I'd like to be able to use that start.
Cont..
Also, I've noticed that I don't get the same error each time. Depending on which machine I'm trying to connect to, it'll give me an error with either two or three options as to why it's not working. Trying to figure out what that's telling me.
As far as Terminal Services are concerned, when I connect from the desktop, I believe I'm using Remote Desktop there (honestly, I haven't been paying attention -- I just use whatever pops up when I type 'mstsc' from the Run dialog, lol), and I can connect to the 2003 server. However, I can't play with this anymore today, because apparently the server is down, and I won't be able to get to it till Monday.
I think I'm going to go play with the ATT proxy and see if that changes anything. I think mine is still enabled because I read that it might help with the GPS problems...
I have found some freeware app... pocketping 1.6 and microsoft has a network tool offering which I am not sure will work on WM6. I have no exp. with either tool on WM.
Can you get to your http/https router mgmt interface from the device? Check your router's client table? Does your router have any logging capabilities?
Sorry, more questions than answers.
Router
I am able to "dial" into the router from my phone -- it shows the HTCP4600 in the clients table with an IP of 192.168.2.108 ... all good.
My logging on the router was disabled, but now it is enabled. What should I be looking for?
I think i'll try the pocketping...
Now make sure inside of the router then you have all the correct ports forwarded.
It should be port 3999 to 3999 On UDP and TCP and then your PC ip behind the firewall.
Pocketping, JETCET Print 5, and success
Here's the update:
Discovered that by disabling the AT&T proxy on the Fuze, I was finally able to connect to my network printer -- the Fuze doesn't have the drivers for my printer, but that's another thread.
So I was able to make my first IN-Network contact. Installed pocketping 1.6, and it's a very useful tool. I'm able to successfully ping the computers on my network now that the proxy is disabled -- an voila...I can also connect to my laptop on my own network! The main trick was to use the network IP address and not the DNS name.
Thanks to both of you who helped out.

Running Server over Cellular

Hello everyone,
I am looking into the idea of being able to run an SSH or VNC server on the Windows Mobile platform over cellular (3G). I know for a fact Tmobile can assign a 'route-able' IP address to a phone here in the USA (this has been tested). I can ping this IP address from any computer on the internet (albeit with some substantial latency). Perhaps there is a way to use the Tmobile allowed "pinging your device" to tunnel SSH or VNC traffic.
I would like to figure out a way to reach an SSH or VNC server on my phone using this method. We would need to somehow "open" an inbound port to the phone (this would function like basic port forwarding).
All of this works perfectly over WiFi, of course, but the goal is to get this working over cellular 3G (in particular, Tmobile). I see this as a technical challenge we can overcome as a group.
Does anyone have any ideas on this?
Come on folks, someone must have some ideas on this!
Here's a few links I came across:
http://kar1107.blogspot.com/2006/03/running-servers-on-cell-phones.html
http://digg.com/software/Run_a_web_server_from_your_phone

No internet when using built in VPN

Having an issue using the built-in VPN. I can set up a PPTP VPN and connect, however, once connected I have no internet (no data). As soon as I disconnect, I have data. Did some searching around the web and noticed it was a know issue on Android, but wondering if others on the TF have the same issue?
When using a VPN it uses the gateway on the remote network. If that network requires a proxy server you won't have an internet connection. There are apps out there that let you set proxy settings, but thankfully Google is finally included the options natively in the 3.1 update. What I would really like them to do though is allow you to use your local gateway instead.
I have no problems using AceVPN www.acevpn.com with my TF using the builtin vpn client. My HTC Inspire also works great on there.
What is the built in VPN client you are speaking of?
I am looking for a VPN client i can use to log into my work network - I assume it doesn't have to be the same client as on my laptop?
I am going on holidays and only taking the TF - I want to be able to VPN into my work network if needed. ON the face of it I don't see how it would work since even if I VPN in the network is MS based so not sure how an Android client works on a MS based network - since I am not remoting into a machine with Windows - just VPNing into the network......so once I am in then what?

Categories

Resources