# Foscam IP Camera - Connection Problem?

**URL:** https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258
**Category:** Wowza Streaming Engine
**Created:** [March 8, 2012, 1:31pm UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258 "2012-03-08T13:31:02Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Felipe\_Ardila](https://avatars.discourse-cdn.com/v4/letter/f/3be4f8/32.png) [@Felipe\_Ardila](https://community.wowza.com/u/Felipe_Ardila)
#### Post date: [March 8, 2012, 1:31pm UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/1 "2012-03-08T13:31:02Z")

</div>

Hi, I am working on a CentOS 5.7 and using WMS 3.0.5 with the transcoder AddOn.

I am trying to re-stream from a Foscam IP camera using WMS, the model of the camera is FI8602W ([http://www.foscam.com/prd\_view.aspx?id=43](http://www.foscam.com/prd_view.aspx?id=43)), but it seems that I cant stablish a proper connection with the camera.

Here is the log:

```auto
INFO server comment - RTPMediaCaster.create[1553639268]
INFO server comment - RTPMediaCaster.init[1553639268]
INFO server comment - RTPMediaCaster.Reconnector[1553639268:live/_definst_:camera1.stream]: start: 1
INFO server comment - HTTPStreamManager.onHTTPRequest: Publish stream successfully started [live/_definst_]: flv:camera1.stream
INFO server comment - RTPSessionTracker.add[rtsp://housetek.dyndns.org:554/12]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://housetek.dyndns.org:554/12/trackID=0
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
INFO server comment - RTPSessionTracker.remove[rtsp://housetek.dyndns.org:554/12]: 0:true
WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.
INFO server comment - RTPSessionTracker.add[rtsp://housetek.dyndns.org:554/12]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://housetek.dyndns.org:554/12/trackID=0
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
INFO server comment - RTPSessionTracker.remove[rtsp://housetek.dyndns.org:554/12]: 0:true
WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.
INFO server comment - RTPSessionTracker.add[rtsp://housetek.dyndns.org:554/12]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://housetek.dyndns.org:554/12/trackID=0
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
INFO server comment - RTPSessionTracker.remove[rtsp://housetek.dyndns.org:554/12]: 0:true

```

What could be the reason of my problem and how can I fix it?

thanks!

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [March 8, 2012, 10:21pm UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/2 "2012-03-08T22:21:22Z")

</div>

I tried it in VLC and got username/password challenge. You can add that in the url like this

```auto
rtsp://richard:mypwd@housetek.dyndns.org:554/12/trackID=0

```

The camera has to support basic authentication for the above method.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [March 8, 2012, 10:46pm UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/3 "2012-03-08T22:46:39Z")

</div>

That username and password did not work

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [July 24, 2012, 4:08pm UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/4 "2012-07-24T16:08:45Z")

</div>

Kapil,

Try applying patch 6

[https://www.wowza.com/downloads/WowzaMediaServer-3-1-2/WowzaMediaServer3.1.2-patch6.zip](https://www.wowza.com/downloads/WowzaMediaServer-3-1-2/WowzaMediaServer3.1.2-patch6.zip)

If you have less than 3.1.2, apply this patch first, before the above.

[https://www.wowza.com/downloads/WowzaMediaServer-3-1-2/WowzaMediaServer-3.0.x-3.1.2.zip](https://www.wowza.com/downloads/WowzaMediaServer-3-1-2/WowzaMediaServer-3.0.x-3.1.2.zip)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [September 4, 2012, 11:19am UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/5 "2012-09-04T11:19:48Z")

</div>

The problem specific to this camera was addressed in patch 6. This might just be a connectivity/network problem.

You could apply patch 12 in any case

[https://www.wowza.com/downloads/WowzaMediaServer-3-1-2/WowzaMediaServer3.1.2-patch12.zip](https://www.wowza.com/downloads/WowzaMediaServer-3-1-2/WowzaMediaServer3.1.2-patch12.zip)

Richard

---

<div class="post-metadata">

### Author: ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)
#### Post date: [March 9, 2012, 1:35am UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/6 "2012-03-09T01:35:12Z")

</div>

Ardilom,

If you can’t get the basic authentication working in VLC, it’s not going to work in the stream file. I tried your user/pass and VLC reports “Stream 0, Codec: H264” etc… But, I never see any video playing, then it asks me for the password again. This will have to be sorted out before you can expect to get it working with Wowza.

You’ll want to try to get the RTSP streaming working on your local network to eliminate firewall as an issue. Try turning off authentication and see if that helps. Consult your camera manufacturer/documentation.

---

<div class="post-metadata">

### Author: ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)
#### Post date: [March 13, 2012, 6:57pm UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/7 "2012-03-13T18:57:56Z")

</div>

Hi again Ardilom,

If the camera uses one of the codecs supported by Wowza you should be able to simply follow the RTSP Re-streaming tutorial: [https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtsp-rtp-based-encoder](https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtsp-rtp-based-encoder)

But, I’m not sure the codec is supported. I’m not able to open your link in VLC, so I can’t test it. VLC reports the codec, then it disappears, and the stream never plays. Wowza reports “Metadata appears to be bad.” With trackID=0, I get “Stream not found”.

---

<div class="post-metadata">

### Author: ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)
#### Post date: [May 8, 2012, 2:42am UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/8 "2012-05-08T02:42:32Z")

</div>

Hi kapil1234,

What is your OS? What is your setup? All devices on the local network? It looks like it’s failing because of a port issue after the [setup request](http://msdn.microsoft.com/en-us/library/cc245453%28v=prot.10%29.aspx). Or, it’s the authentication. Does the camera or Wowza require RTSP authentication? Turn off both if possible.

Most likely you need to forward outgoing udp ports 6970-9000 on your server. Or install the nf\_conntrack\_rtsp and nf\_nat\_rtsp Linux kernel modules.

---

<div class="post-metadata">

### Author: ![Felipe\_Ardila](https://avatars.discourse-cdn.com/v4/letter/f/3be4f8/32.png) [@Felipe\_Ardila](https://community.wowza.com/u/Felipe_Ardila)
#### Post date: [March 8, 2012, 6:33pm UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/9 "2012-03-08T18:33:08Z")

</div>

If I try that URL I get almost the same error…

```auto
WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.
INFO server comment - RTPSessionTracker.add[rtsp://housetek.dyndns.org:554/12/trackID=0]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://housetek.dyndns.org:554/12/trackID=0/trackID=0
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
INFO server comment - RTPSessionTracker.remove[rtsp://housetek.dyndns.org:554/12/trackID=0]: 0:true
WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.
INFO server comment - RTPSessionTracker.add[rtsp://housetek.dyndns.org:554/12/trackID=0]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://housetek.dyndns.org:554/12/trackID=0/trackID=0
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
INFO server comment - RTPSessionTracker.remove[rtsp://housetek.dyndns.org:554/12/trackID=0]: 0:true
WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.
INFO server comment - RTPSessionTracker.add[rtsp://housetek.dyndns.org:554/12/trackID=0]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: SETUP: rtsp://housetek.dyndns.org:554/12/trackID=0/trackID=0
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose
INFO server comment - RTPSessionTracker.remove[rtsp://housetek.dyndns.org:554/12/trackID=0]: 0:true

```

to connect to the camera try

username: user

password: 4321

---

<div class="post-metadata">

### Author: ![Felipe\_Ardila](https://avatars.discourse-cdn.com/v4/letter/f/3be4f8/32.png) [@Felipe\_Ardila](https://community.wowza.com/u/Felipe_Ardila)
#### Post date: [March 8, 2012, 7:20pm UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/10 "2012-03-08T19:20:04Z")

</div>

if you go to this page [http://housetek.dyndns.org:1024/web/ptz.html](http://housetek.dyndns.org:1024/web/ptz.html) you can check the Camera live. the username/password is user/4321, I checked it twice.

```auto
rtsp://user:4321@housetek.dyndns.org:554/12

```

and

```auto
rtsp://user:4321@housetek.dyndns.org:554/12/trackID=0

```

these are the exact RTSP URLs that I have in my camera.stream file

Still not working?

---

<div class="post-metadata">

### Author: ![Felipe\_Ardila](https://avatars.discourse-cdn.com/v4/letter/f/3be4f8/32.png) [@Felipe\_Ardila](https://community.wowza.com/u/Felipe_Ardila)
#### Post date: [March 13, 2012, 5:20pm UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/11 "2012-03-13T17:20:57Z")

</div>

> Ardilom,
> 
> If you can’t get the basic authentication working in VLC, it’s not going to work in the stream file. I tried your user/pass and VLC reports “Stream 0, Codec: H264” etc… But, I never see any video playing, then it asks me for the password again. This will have to be sorted out before you can expect to get it working with Wowza.
> 
> You’ll want to try to get the RTSP streaming working on your local network to eliminate firewall as an issue. Try turning off authentication and see if that helps. Consult your camera manufacturer/documentation.

I made it work on VLC, but I am still getting the same error on Wowza.

Here is a picture of VLC working:

(the video is actually showing a grey curtain)

this is the URL that I used:

```auto
rtsp://user:4321@190.98.235.199:554/11

```

What is the next step to make it work with Wowza?

Does TrackID=0 have a meaning?

Ardilom.

---

<div class="post-metadata">

### Author: ![kapil\_kumar](https://avatars.discourse-cdn.com/v4/letter/k/c77e96/32.png) [@kapil\_kumar](https://community.wowza.com/u/kapil_kumar)
#### Post date: [May 8, 2012, 1:04pm UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/12 "2012-05-08T13:04:59Z")

</div>

hi

i have been facing same issue my camera is streaming in vlc but not through wowza

the same log i get and i also have transcoder on , i have successfully streamed with Tplink camera

but with wans view it is not working giving the logs as same as the above issue i have mention id password in rtsp url and had success there but still facing the following logs

INFO server comment - RTPSessionTracker.add[rtsp://192.168.1.15:554/11]: 1

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.p rocessResponse: SETUP: rtsp://192.168.1.15:554/11/trackID=0

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.o nClose

INFO server comment - RTPSessionTracker.remove[rtsp://192.168.1.15:554/11]: 0:true

is this the case that some cameras are not supported by wowza or something else please help

---

<div class="post-metadata">

### Author: ![Raymon\_van\_der\_M](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Raymon\_van\_der\_M](https://community.wowza.com/u/Raymon_van_der_M)
#### Post date: [July 26, 2012, 1:36pm UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/13 "2012-07-26T13:36:58Z")

</div>

I`m having this same issue when using a Foscam FI8620

I have four cams running (Axis Mxxxx) without issue but when i try to add a fifth foscam it is not working (already running patch 6)

This is the content of the stream file

```auto
rtsp://10.4.85.5/11

```

I made some tcpdump an see response from the camera but no video. When using VLC on the local network it is working when using a Windows 7 VLC install

```auto
14:34:22.260566 IP (tos 0x0, ttl 64, id 50880, offset 0, flags [DF], proto TCP (6), length 60)
    10.4.32.85.41411 > 10.4.85.5.554: Flags [S], cksum 0x2b6f (correct), seq 3212403914, win 5840, options [mss 1460,sackOK,TS val 304390666 ecr 0,nop,wscale 6], length 0
14:34:22.262132 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 60)
    10.4.85.5.554 > 10.4.32.85.41411: Flags [S.], cksum 0x57d3 (correct), seq 1115588033, ack 3212403915, win 5792, options [mss 1460,sackOK,TS val 527224 ecr 304390666,nop,wscale 1], length 0
14:34:22.262158 IP (tos 0x0, ttl 64, id 50881, offset 0, flags [DF], proto TCP (6), length 52)
    10.4.32.85.41411 > 10.4.85.5.554: Flags [.], cksum 0x9cdd (correct), seq 1, ack 1, win 92, options [nop,nop,TS val 304390666 ecr 527224], length 0
14:34:22.262865 IP (tos 0x0, ttl 64, id 50882, offset 0, flags [DF], proto TCP (6), length 220)
    10.4.32.85.41411 > 10.4.85.5.554: Flags [P.], seq 1:169, ack 1, win 92, options [nop,nop,TS val 304390666 ecr 527224], length 168
14:34:22.264316 IP (tos 0x0, ttl 64, id 36538, offset 0, flags [DF], proto TCP (6), length 52)
    10.4.85.5.554 > 10.4.32.85.41411: Flags [.], cksum 0x9141 (correct), seq 1, ack 169, win 2896, options [nop,nop,TS val 527224 ecr 304390666], length 0
14:34:22.275330 IP (tos 0x0, ttl 64, id 36540, offset 0, flags [DF], proto TCP (6), length 187)
    10.4.85.5.554 > 10.4.32.85.41411: Flags [P.], seq 1:136, ack 169, win 2896, options [nop,nop,TS val 527226 ecr 304390666], length 135
14:34:22.275350 IP (tos 0x0, ttl 64, id 50883, offset 0, flags [DF], proto TCP (6), length 52)
    10.4.32.85.41411 > 10.4.85.5.554: Flags [.], cksum 0x9b99 (correct), seq 169, ack 136, win 108, options [nop,nop,TS val 304390669 ecr 527226], length 0
14:34:22.275654 IP (tos 0x0, ttl 64, id 50884, offset 0, flags [DF], proto TCP (6), length 196)
    10.4.32.85.41411 > 10.4.85.5.554: Flags [P.], seq 169:313, ack 136, win 108, options [nop,nop,TS val 304390669 ecr 527226], length 144
14:34:22.277150 IP (tos 0x0, ttl 64, id 36542, offset 0, flags [DF], proto TCP (6), length 540)
    10.4.85.5.554 > 10.4.32.85.41411: Flags [P.], seq 136:624, ack 313, win 2896, options [nop,nop,TS val 527226 ecr 304390669], length 488
14:34:22.277515 IP (tos 0x0, ttl 64, id 50885, offset 0, flags [DF], proto TCP (6), length 251)
    10.4.32.85.41411 > 10.4.85.5.554: Flags [P.], seq 313:512, ack 624, win 125, options [nop,nop,TS val 304390670 ecr 527226], length 199
14:34:22.279934 IP (tos 0x0, ttl 64, id 36544, offset 0, flags [DF], proto TCP (6), length 184)
    10.4.85.5.554 > 10.4.32.85.41411: Flags [P.], seq 624:756, ack 512, win 2896, options [nop,nop,TS val 527226 ecr 304390670], length 132

```

When i look at the logile is see this message

```auto
WARN	server	comment	2012-07-26	14:50:14	-	-	-	-	-	10093.24	-	-	-	-	-	-	--	RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.

```

I really need this to be working this week because we need to stream the camera next week

---

<div class="post-metadata">

### Author: ![Nivaldo\_Silva](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@Nivaldo\_Silva](https://community.wowza.com/u/Nivaldo_Silva)
#### Post date: [September 3, 2012, 2:47pm UTC](https://community.wowza.com/t/foscam-ip-camera-connection-problem/38258/14 "2012-09-03T14:47:17Z")

</div>

Any solution for this problem?

I can watch the stream using VLC but now on Wowza!

IP Camera Foscam FI8602W

Wowza for Windows Version: 3.1.2.06 build1753

Stream url: rtsp://admin:12345@192.168.11.28:554/11

Wowza log:

2012-09-03 16:44:17 BRT comment server INFO 200 - RTPSessionTracker.add[rtsp://192.168.11.28:554/11]: 1 - - - 684.482

2012-09-03 16:44:17 BRT comment server INFO 200 - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose - - - 684.529

2012-09-03 16:44:17 BRT comment server INFO 200 - RTPSessionTracker.remove[rtsp://192.168.11.28:554/11]: 0:true - - - 684.529

Wowza Console:

WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming timeout.

INFO server comment - RTPSessionTracker.add[rtsp://192.168.11.28:554/11]: 1

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose

INFO server comment - RTPSessionTracker.remove[rtsp://192.168.11.28:554/11]: 0:true
