Skip to main content

Android: forward port

Write socket application listen at port 5000
to allow this port on your machine, you have to forward port

At server
adb forward tcp:5000 tcp:5000

MAC OS X: use Authoxy 3.4 http://www.brothersoft.com/authoxy-download-196371.html
and allow other computer to connect

WindowXP: use stcppipe.exe -b 127.0.0.1 5000 5000

Ubuntu:

1. sudo make install

2. make aproxy folder in "LIBDIR=/usr/local/lib/aproxy"

3. create file .aproxyrc and .aproxyrules as explained in readme

In .aproxyrules add the following line
$R{5001} = [ "localhost" , 5000 ];

Note: *R is a alias for *Proxy::Config::ForwardRules. You can also write
$Proxy::Config::ForwardRules{5001} = [ "localhost" ,5000 ] ;
The above line means the following:
* setup a listening socket on port 5001 on the local machine.
* when a client connects to port 5001 the connection will be
forwarded to localhost port 5000.

4. Run
./aproxy.pl .aproxyrc .aproxyrules
#Note: make sure that port 5001 is bind
#Amazon has opened port 5001
#forward port 5000 to 5000 in android
----------------------------------------
3proxy not work as well:
use 3proxy tiny: http://3proxy.ru/download/
Instruction => http://glipmax.com/installing-3proxy-tiny-proxy-server.htm and its doc at file:///home/jaaaaa/Desktop/3proxy-0.6/doc/html/howtoe.html#LAUNCH

$make -f Makefile.unix
$proxy -p5000 -ilocalhost

----------------------------------
SQUID is just HTTP proxy
use squid https://help.ubuntu.com/8.04/serverguide/C/squid.html
- set http_port in /etc/squid/squid.config e.g. http_port 5000
- set visible_hostname in /etc/squid/squid.config e.g. visible_hostname localhost
- restart: sudo /etc/init.d/squid restart
---------------------------------

List port open: sudo lsof -i -P

To set the ssh tunnel at client
ssh -L 4444:localhost:4444 jaaaaa@
-----------------------------------------------

Note: For Amazon EC2-> need to add that port in the group
-----------------------------------------------
Kill port adb listening
1. kill adb => adb kill-server
2. restart squid

Comments

Popular posts from this blog

Book of Answer Privacy Policy

Privacy Policy Privacy Policy Jaa Yoo built the Book of Answer app as a Free app. This SERVICE is provided by Jaa Yoo at no cost and is intended for use as is. This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service. If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy. The terms used in this Privacy Policy...

Conjunctive Adverbs

Conjunctive Adverbs คือคำเชื่อมประโยคเข้าด้วยกัน 1. Addition  เสริมกัน Moreover/ Besides/ Furthermore/ Also/ In addition He is good at sport; moreover, he is good at cooking. 2. Contrast ขัดแย้ง อย่างไรก็ตาม However/ Nevertheless/ Nontheless/ / Still  + ประโยค The hotel is costly; nonetheless, the service is not impressive. ในทางกลับกัน In contrast/ On the contrary/ Conversely/ On the other hand + ประโยค ถึงแม้ว่า Although, Though, Even though + ประโยค ทั้งๆที่ Despite/ In spite of  + คำนาม 3. Alternative ทางเลือก Otherwise/ Or else You'll have to go now, otherwise you'll miss your bus. 4. Comparison เปรียบเทียบ Likewise/ Similarly/ In the same way I drink 8 glasses of water per day; my kids, likewise, do the same. 5. Illustrate ตัวอย่าง For example/ For instance + ประโยค such as/ namely + คำนาม There are many good hotels in town; for example, ABC Grand, FF Resort, Long Beach. 6. Resu...

การใช้ Both, Either and Neither นำหน้าคำนาม

Both ใช้กับคำนามพหูพจน์ Both + of + คำนามพหูพจน์ Both ไม่สามารถตามด้วยคำนามเอกพจน์ได้ Both children  were born in Italy. Both the children  were born in Italy. Both of the children  were born in Italy. Both my parents  have fair hair. Both of my parents  have fair hair. Both of us  like skiing. I told  both of them  to calm down. Either ความหมายเชิงบวก อ้างถึงคำนาม 1 คำ จาก 2 คำ ตามด้วยเอกพจน์ I can stay at  either hotel . Either day  is fine for me. There are two chairs here. You can take  either of them . Either of you  can come. Either of the hotels  will be fine. I can eat  either of the salads . Note   Either...or  เป็นคำเชื่อม ไม่ใช่คำนำหน้านาม Neither ความหมายเชิงลบ อ้างถึงคำนาม 1 คำ จาก 2 คำ ตามด้วยเอกพจน์ ถ้าเป็น Neither + of + คำนามพหูพจน์ Neither chair  is any good. Neither brother  came. Which bag do you want?  Neither of them . Neither ...