Sample Header Ad - 728x90

How to listen to requests made on an open port

0 votes
1 answer
1246 views
I am trying to make a masterQueue for Chromecast. It will enable inter-app queuing. I am stuck with few network basics. I am using an older cast sdk because it provided Java API. It could be very vague and may not be appropriate for this site, but I would really appreciate if you could point me in the right direction. What I have done so far : * I have used this code * I figured that my chrome cast runs on 10.0.0.x and is open on port 8089. What can I possibly do to listen to all the cast requests made to 10.0.0.x:8089. I want to store the request in the queue and keep polling and playing until my queue is empty. I did the following commands to get more insights : Aakashs-MacBook-Pro:~ aakashshah$ sudo lsof -n -P -i :8009 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME Google 614 aakashshah 149u IPv4 0x3837229g56402e0d 0t0 TCP 10.0.0.xxx:64416->10.0.0.xx:8009 (ESTABLISHED) Google 614 aakashshah 315u IPv4 0x3837224598nnfe0d 0t0 TCP 10.0.0.xxx:64411->10.0.0.x:8009 (ESTABLISHED) java 84205 aakashshah 22u IPv6 0x3837229f49a79725 0t0 TCP 10.0.0.xxx:49562->10.0.0.x:8009 (ESTABLISHED) java 84205 aakashshah 24u IPv6 0x3837229f49a7a2a5 0t0 TCP 10.0.0.xxx:49563->10.0.0.x:8009 (ESTABLISHED) In the above result 10.0.0.xxx is my IP address. I want to continuously listen to this port and see what requests are made on chromecast. I would also like to understand what does 10.0.0.xxx:64411->10.0.0.x:8009 (ESTABLISHED) mean especially 10.0.0.xxx:64411->10.0.0.x:8009. What does the port 64411 do? I am guessing is it a free port available on my router. So it used that to talk to chromecast. Can I reverse proxy/ port forward/ reverse something to listen to *requests made on 8009* over some other free port? I am trying to understand mDNS after landing on this page
Asked by technazi (103 rep)
Apr 25, 2018, 06:33 AM
Last activity: Apr 25, 2018, 08:24 AM