[Live-devel] testRTSPClient that behind a NAT

kingaceck kingaceck at 163.com
Wed Sep 11 20:21:44 PDT 2013


HI

I put the live555MediaServer in a CENTOS computer that ip is 129.1.7.151. Then put testRTSPClient also in a CENTOS 
computer that it is behind a NAT(TP-LINK wireless router) and its ip is 192.168.1.105.
I run ./testRTSPClient rtsp://129.1.7.201/test.mpg command and the testRTSPClient can't receive UDP packet.The testRTSPClient  log as bellow.

If I use tecent QQ software(it is a video communication software) on the both computes it can receive UDP packet.
Can you help me to resolve the problem?Thank you very much.

root at esc-laptop:/diske/live/testProgs# ./testRTSPClient rtsp://129.1.7.151/test.mpg
Opening connection to 129.1.7.151, port 554...
...remote connection opened
Sending request: DESCRIBE rtsp://129.1.7.151/test.mpg RTSP/1.0
CSeq: 2
User-Agent: ./testRTSPClient (LIVE555 Streaming Media v2013.09.11)
Accept: application/sdp
Received 638 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 2
Date: Thu, Sep 12 2013 03:15:48 GMT
Content-Base: rtsp://129.1.7.151/test.mpg/
Content-Type: application/sdp
Content-Length: 477
v=0
o=- 1378955748063821 1 IN IP4 129.1.7.151
s=MPEG-1 or 2 Program Stream, streamed by the LIVE555 Media Server
i=test.mpg
t=0 0
a=tool:LIVE555 Streaming Media v2013.03.23
a=type:broadcast
a=control:*
a=range:npt=0-225.832
a=x-qt-text-nam:MPEG-1 or 2 Program Stream, streamed by the LIVE555 Media Server
a=x-qt-text-inf:test.mpg
m=video 0 RTP/AVP 32
c=IN IP4 0.0.0.0
b=AS:500
a=control:track1
m=audio 0 RTP/AVP 14
c=IN IP4 0.0.0.0
b=AS:128
a=control:track2
[URL:"rtsp://129.1.7.151/test.mpg/"]: Got a SDP description:
v=0
o=- 1378955748063821 1 IN IP4 129.1.7.151
s=MPEG-1 or 2 Program Stream, streamed by the LIVE555 Media Server
i=test.mpg
t=0 0
a=tool:LIVE555 Streaming Media v2013.03.23
a=type:broadcast
a=control:*
a=range:npt=0-225.832
a=x-qt-text-nam:MPEG-1 or 2 Program Stream, streamed by the LIVE555 Media Server
a=x-qt-text-inf:test.mpg
m=video 0 RTP/AVP 32
c=IN IP4 0.0.0.0
b=AS:500
a=control:track1
m=audio 0 RTP/AVP 14
c=IN IP4 0.0.0.0
b=AS:128
a=control:track2
[URL:"rtsp://129.1.7.151/test.mpg/"]: Initiated the "video/MPV" subsession (client ports 33962-33963)
Sending request: SETUP rtsp://129.1.7.151/test.mpg/track1 RTSP/1.0
CSeq: 3
User-Agent: ./testRTSPClient (LIVE555 Streaming Media v2013.09.11)
Transport: RTP/AVP;unicast;client_port=33962-33963
Received 201 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 3
Date: Thu, Sep 12 2013 03:15:48 GMT
Transport: RTP/AVP;unicast;destination=129.1.7.100;source=129.1.7.151;client_port=33962-33963;server_port=6970-6971
Session: 045D9B13
[URL:"rtsp://129.1.7.151/test.mpg/"]: Set up the "video/MPV" subsession (client ports 33962-33963)
[URL:"rtsp://129.1.7.151/test.mpg/"]: Created a data sink for the "video/MPV" subsession
[URL:"rtsp://129.1.7.151/test.mpg/"]: Initiated the "audio/MPA" subsession (client ports 45140-45141)
Sending request: SETUP rtsp://129.1.7.151/test.mpg/track2 RTSP/1.0
CSeq: 4
User-Agent: ./testRTSPClient (LIVE555 Streaming Media v2013.09.11)
Transport: RTP/AVP;unicast;client_port=45140-45141
Session: 045D9B13
Received 201 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 4
Date: Thu, Sep 12 2013 03:15:48 GMT
Transport: RTP/AVP;unicast;destination=129.1.7.100;source=129.1.7.151;client_port=45140-45141;server_port=6972-6973
Session: 045D9B13
[URL:"rtsp://129.1.7.151/test.mpg/"]: Set up the "audio/MPA" subsession (client ports 45140-45141)
[URL:"rtsp://129.1.7.151/test.mpg/"]: Created a data sink for the "audio/MPA" subsession
Sending request: PLAY rtsp://129.1.7.151/test.mpg/ RTSP/1.0
CSeq: 5
User-Agent: ./testRTSPClient (LIVE555 Streaming Media v2013.09.11)
Session: 045D9B13
Range: npt=0.000-
Received 250 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 5
Date: Thu, Sep 12 2013 03:15:48 GMT
Range: npt=0.000-
Session: 045D9B13
RTP-Info: url=rtsp://129.1.7.151/test.mpg/track1;seq=52825;rtptime=3805307075,url=rtsp://129.1.7.151/test.mpg/track2;seq=39912;rtptime=1308949270
[URL:"rtsp://129.1.7.151/test.mpg/"]: Started playing session (for up to 227.832000 seconds)...

There is no data received from server log.

2013-09-12 



kingaceck 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130912/88cfa506/attachment.html>


More information about the live-devel mailing list