Tunnel Internet over Vpn or ssh? - G1 Android Development

Hi people i'm here for asking you a thing..
I got the g1 android .. But in italy there are some restriction about internet carrier offers..
Right now i can only surf HTTP internet.. But if i try to go over an https connection (gmail , greader .... ) I cannot surf..
So i thought to put a vpnserver on port 80 and then tunnel every connection there...
Maybe easier could be tunnel every connection through an ssh ( port 80 ) connection...
Any other suggestion?

Another approach would be to develop this:
http://en.wikipedia.org/wiki/Ethernet_over_USB
Then you would hook up the phone to the computer, which would see another ethernet card (with the proper host USB-ethernet drivers). Once this is set, you just run iptables on the phone to nat the network connection... much cleaner than going through a wifi setup or through a special proxy... or dialing through the phone to get a connection and disabling the phone's networking, no?

Uhm , i think that it is wow..
But i need another thing.. What i need is tunnel every connection via ssh or vpn..

I'm trying that but that app should be used only for the phone...

vekexasia said:
Hi people i'm here for asking you a thing..
I got the g1 android .. But in italy there are some restriction about internet carrier offers..
Right now i can only surf HTTP internet.. But if i try to go over an https connection (gmail , greader .... ) I cannot surf..
So i thought to put a vpnserver on port 80 and then tunnel every connection there...
Maybe easier could be tunnel every connection through an ssh ( port 80 ) connection...
Any other suggestion?
Click to expand...
Click to collapse
Ah... now if I READ your request...
sigh.
You should try this:
http://openhandsetmagazine.com/2007/11/tips-howto-connect-android-emulator-behind-proxy/
Hopefully, that will tell Android to connect via a proxy somewhere that you either find or setup on a host at port 80, since that's the only port allowed for you.

Unfortunately it does not work ( i cant use sqlite3) .. I'm excluded from every https traffic

Related

How to get a real IP in my notebook?

I access internet via Internet sharing with my Polaris USB connection
I found my notebook would get a NAT ip (192.168.xxxx)
How can I do to get a real IP?
http://www.whatismyip.org/
I mean I want my notebook to get the real IP not NAT
your laptop have 1 ip for each nic wifi and wired and firewire and bluetooth nic
connected and then it have the loopback adaptor
in a console on your laptop you can type ipconfig and have them listed
Sorry my poor English
All I need is to access my notebook's web site by my friends
so I want a real IP to tell my friend
I can browse other web site by using Internet sharing
but my friend can not browse my web site if I use my Polaris to the Internet
I found there was some HTC USB modem driver to use.
but it seems no use on the Polaris
You have a web-server active on your notebook and it is connected in lan at your home, and you want to view this website from internet when you are in your friend's home: it's right?
If I've understand, you must point at the public IP address of your home's internet access (you can find it in site like http://www.whatismyip.org/), but before this, you must forward the port 80 in your router to the private address of your notebook.
Hoping that he was quite clear...
P.S.: Also my English is not the greatest ...
caliu said:
I access internet via Internet sharing with my Polaris USB connection
I found my notebook would get a NAT ip (192.168.xxxx)
How can I do to get a real IP?
Click to expand...
Click to collapse
It was my understanding that with Internet Sharing on WM6, clients are placed into a DMZ and all incoming connections will go to the client.
That means that your web / ftp / etc server should work fine.
However, if your mobile provider makes you use a proxy to access the internet, then incoming connections are not possible.
I'm going to bet that this is what is happening to you, and there is nothing you can do to solve this problem.

can someone explain the ICM to me please?

Hi there!
Maybe I'm just too stupid, but I've benn trying for weeks now to setup the network parameters for my University's Campus network and failed miserably, so could someone please explain to me how this darn "Internet Connection Manager" works?
What I need in brief:
How can I setup a proxy to use with and only with
- HTTP(S) and FTP(S)
for a WiFi-Network that
- is NOT encrypted
- does NOT require dialing a number / accessing a modem
- does NOT use a VPN
??
Whenever I try this it always results in the connection dying completely.
In other words: When I select my standard UMTS-uplink as "default connection for programs connecting automatically" and then manually establish a WiFi-connection I can reach all computers available on the campus network get ping responses and everything, but I cannot use a proxy, hence not load off-campus pages.
When I define a new connection and enter my settings (just WiFi-name and the proxy details) I can still establish a WiFi-connection, but get a ping timeout even on the access point and the intranet servers usually available through the WiFi. No SSH login, no intranet, nothing (but I do get an IP assigned & stuff)
Here's what I would like to do in theory:
=> Manually connect to a WiFi-Network called "tuwlan".
. -open network
. -no encryption
. -IP, netmask, gateway, nameserver etc provided automatically by DHCP
=> Establish a SSH2 (SecureShell) connection to our on-campus proxy server and tunnel some ports to get through the Subnets (extremely restrictive) firewall.
. -SSH including port forwarding done with PockeTTY, works like a charm
=> Use Opera Mobile to surf web pages and FTP Sites through the proxy "localhost:40081" (which is forwarded to our campus proxy server through SSH2).
=> The Proxy only knows HTTP(S) and FTP(S), so all other programs (ICQ, Skype etc) are not to use it!
This setup used to work great with older Opera versions, but they removed the proxy setting dialog in favor of directly using the ICM settings.
So now I'm stuck with Microsofts Internet Connection Manager
Can anyone please help me to get this working?

Help: remote desktop

hello, i show on youtube my hd2 can remote desktop
but i try many time d, still cant not,
it pop up:
cannont connect. likely reasons are:
1. the remote computer is not set up for this.
2.reacher the maximum number of connections.
3.a network error occured while connecting.
i follow all the youtube teach, but still cannot
anyone pro can help, thank
i dont wan waste this function for my hd2...
thank a lot
follow this youtube oso cant
1.http://http://www.youtube.com/watch#playnext=1&playnext_from=TL&videos=c8vPemJbMLU&v=QFiDZ_wBAtM
2.http://www.youtube.com/watch#v=_qlYmk9BzMk&feature=related
3.http://www.youtube.com/watch#playnext=1&playnext_from=TL&videos=V1Nij2F8qOs&v=0Gy9HERZVf0
What windows version does your PC run?
Have you actually activated remote desktop on the PC?
Are you trying to connect via local network (are you at home) or from another place? If from another place, have you configured your router to forward port 3389 to your PC?
I'm having the same problem.. Not had any experience in remote desktoping myself (except stopping the Work's IT guy from spying on me whilst i trawl through XDA good at stopping, not so good at starting )
I think the reason I havent managed to get it to work is down to my router (Thompson peice of s*it!) wont let me.....
What i'm trying to get at is it might be your router...
Can't do it either, Thompson router might be my issue.
i did'nt look at the youtube vids, so i'm not sure you already looked into this. when on the target computer remote desktop is probably already on, but did you also allow all (older) versions of remote desktop te connect?
i remember that option is there since vista (perhaps even XP). for example: when that option is turned off in vista, any xp machine won't be able to connect. i'm pretty sure remote desktop mobile qualifies for 'old'
1. Right click on My Computer , properties , remote , enable remote on this computer
2. Do not obtain private address automaticly from your router , use static IP private address instead ,and on your router do a port forwarding to that static address
example 192.168.0.10 port 3389
3.Install client from dyndns.org that will map your IP address to your dynamicly changing IP global address that your service provider assignes you
4.Configure Administrator password on your windows computer if you dont allready have it
5.Run your remote desktop from your winmo and input all necessary that you had configured
I know that wont probablly be enough , but it is a start ,all missing blanks fill by yourself , google for things you dont know
done all that, still getting same connection error as the OP
im so confused now i dont know what ip i should put into the hd2 remote desktop app and dont even know if i configured my router ( asus wl520 gc ) right =/ if some 1 has the same router as i do, could you please tell me how to config it?
still cant get to work.
Remote Desktop nightmare..
Seems like u guyz gave up on this prob lol.
I getting really frustrated now, after 4 hours trying to get it working.
I have Vista Home Premium. Ppl on some sites are saying that you cannot use this OS to connect remotely. Then some say it works perfectly.
I added the ports on the rooter. Just to check if they are open I downloaded portchecker. (Pic added)
UDP 3389
Port is open.
TCP 3389
"Could not test port 3389 because some other application has that port locked. Please close any applications that may be using this port and try again."
Have no idea what application would be locking this port. If I go to canyouseeme.org the port is open and is not blocked by ISP.
Just to make sure I am doing rite:
Computer: Which IP do I use? My outside IP?
Username: This can be the one I am using to log into my computer or the full account name?
Password: password I'm using to log in
Domain: Leaving blank.
Anyone can help or sorted this issue out before?
Thanks
Suz
Remote Desktop Sorted..
Hi there..
Just wanted to add this in case someone else has the same issue.
If you have Vista Home Premium the Remote Desktop is disabled in the OS. You have to re-enable it using a hack.
This is the link which walks you through it hxxp://www.missingremote.com/index.php?option=com_content&task=view&id=1220&Itemid=224
Once you finish this make sure that you have the port forwarding on your router for 3389.
If you do it should run. I noticed that my internet connection died once I was able to connect to my computer using my HTC HD2. Once I disabled the port forwarding the internet worked again.
It's rather difficult to navigate on your PC using your Phone without a stylus but hey I'd rather have this than missing some other stuff..
If you need help with the remote send me a pm. I know how frustrating this can be..
xxx

pass app http trafic through a proxy installed on my pc

Hi everybody,
I am tring to debug an android app. I need to pass all the http trafic of my htc desire s through a proxy server( Paros, WebScarab, etc.) that i have on my pc. I need to intercept the http messages.
I have rooted the phone and installed a proxy on it. I have connected the phone and the pc to the same wifi so that they will be in the same network. After this i have put the pc's ip in the Proxy Host: "192.168.1.2" and the port "8080" on the Proxy Port field because Paros Proxy uses 8080.
I cant find a way to do make this work.. can someone help me? Is there another way or am i doing it wrong?
If you just need to intercept messages, why don't you run a sniffer directly on the phone ? There are a lot, and most use the tcpdump binary, that is very handy ! They output a .pcap file that can be handled by programs like Wireshark, NetMiner, ...
Otherwise you could sniff the traffic with a pc that has a wireless card that can be put in monitor mode (old eeepc FTW !). Then filter out only the traffic from<->to device.
If you really need to pass thru a proxy... well, have you tried connecting your own pc to the proxy, or any other pc in your lan? Does it work ? I don't know if Paros has this feature, but have you checked that the relay is open for all hosts on LAN or just loopback connection ?

[Q] Q| IP-Webcam App Problem

hello,
i downloaded the app IP-Webcam that stream your camera live to your PC or any other device.
every time a start the server, with or without WIFI, my IP start with 10 (10.*.*.*:8080)
so i can only connect via same network, what means that if i start the server using mobile internet i can't connect at all..
in all the youtube videos about the app i see that the IP start with 192 (192.*.*.*:8080)
so they can connect via mobile internet.
how can i ma ke my IP to start with 192 ??
alontraitel said:
hello,
i downloaded the app IP-Webcam that stream your camera live to your PC or any other device.
every time a start the server, with or without WIFI, my IP start with 10 (10.*.*.*:8080)
so i can only connect via same network, what means that if i start the server using mobile internet i can't connect at all..
in all the youtube videos about the app i see that the IP start with 192 (192.*.*.*:8080)
so they can connect via mobile internet.
how can i ma ke my IP to start with 192 ??
Click to expand...
Click to collapse
I'd suggest that you go away and do some reading on the Internet (try using Google) about what an IP address is and how it relates to your device, network and everything else. Life is too short for me to try and explain all that to you.
Simply, however, the IP address must match your network.
SimonTS said:
I'd suggest that you go away and do some reading on the Internet (try using Google) about what an IP address is and how it relates to your device, network and everything else. Life is too short for me to try and explain all that to you.
Simply, however, the IP address must match your network.
Click to expand...
Click to collapse
ok... i know now that 192 and 10 are local IP's
so i change my question:
how can i connect to this webcam via a long distance computer??
like i run the server in my house and my friend from the other side of the city connect to it ?
alontraitel said:
ok... i know now that 192 and 10 are local IP's
so i change my question:
how can i connect to this webcam via a long distance computer??
like i run the server in my house and my friend from the other side of the city connect to it ?
Click to expand...
Click to collapse
Now you need to read up on TCP and UDP ports, find out which ports the webcam application uses and either set up a VPN to your network, or allow those ports through your Router/Firewall so other people can access the camera remotely.
SimonTS said:
Now you need to read up on TCP and UDP ports, find out which ports the webcam application uses and either set up a VPN to your network, or allow those ports through your Router/Firewall so other people can access the camera remotely.
Click to expand...
Click to collapse
ok i open the port 8080 to TCP/UDP
how can i set an VPN? hamachi will work?
if it will work? what IP i need to give to my friends ?
alontraitel said:
ok i open the port 8080 to TCP/UDP
how can i set an VPN? hamachi will work?
if it will work? what IP i need to give to my friends ?
Click to expand...
Click to collapse
Setting up a VPN depends on what Router/Firewall etc you have, so I can't tell you. The IP you would need to give would by your External Internet address (the one your Router's WAN port uses) and you would need to either use NAT or Port-Forwarding to get the incoming packets to the IP Address of your phone.
Hamachi will not be any use as it doesn't have an Android client to run on your phone.

Categories

Resources