How to simulate RTMP blocking on port 80 in Windows?

I have a simple Flash client connecting to Flash Media Server, and I would like it to simulate a client by doing the following:

  • Attempt to connect to RTMP stream on port 1935 and fail,
  • Return to RTMP on port 443 and fail,
  • Return to RTMP on port 80 and failure, and ultimately
  • Return to RTMPT (HTTP) through port 80 and beyond.

This is assumed to be the default behavior for a Flash player, for example as described here :

In many cases, this is all you need. walk past many firewalls without using HTTP tunneling. This works because of the function built into the NetConnection Object. When you do not specify the port number in the RTMP address, Macromedia Flash will try to connect to port 1935. If it does not work, it will try to connect to port 443; if this fails, he will try port 80 .. Thus, encoding is not required to access ports 1935, 443, or port 80, unless you specify a port in the RTMP address.

And here :

FMS netConnection connect, , , : nc.connect( "RTMP://, " ). , , - , . , , rtmp. The Flash- rtmp 1935, 80, rtmpt () 80.

Windows 7, , , Flash RTMP RTMPT. Windows, , " " ( - , TCP - 6, UDP 17 ..), RTMP.

- , , . .

+3
3

Firefox Windows 7 -, (localhost). Windows 1935, 443 80 IP- : "plugin-container.exe". (, Firefox 3.6 "plugin-container.exe" Flash.) - Windows ( IE, "" - " " β†’ "" - " " ), HTTP--. , Flash, -, - Windows, Firefox, Firefox.

+1

RTMP TCP, TCP .

.

name: RTMP Default (1935)
protocol: TCP
local port: any
remote port: 1935
local ip: any
remote ip: any

name: RTMP over 443
protocol: TCP
local port: any
remote port: 443
local ip: any
remote ip: any

name: RTMP over 80
protocol: TCP
local port: any
remote port: 80
local ip: any
remote ip: any

RTMP, , . , 443. RTMP over 443 , 80.

0

HTTP--, HTTP . , RTMP, , , , RTMP 80, RTMPT . . - , , . , HTTP--, , .

0

Source: https://habr.com/ru/post/1746917/


All Articles