SKJM Forum

Support => iCam Support => Topic started by: netis on December 26, 2008, 02:37:27 AM

Title: Connect iCam Broker Server error
Post by: netis on December 26, 2008, 02:37:27 AM
I bought icam 1.0.2, the iCam notify me "There was error connecting to the iCam Broker Server. Please try again later."

I already run iCam Source Windows 0.3 version, filled the username and password.

my pc system is vista.

Please help me, thanks.
Title: Re: Connect iCam Broker Server error
Post by: Jay on December 26, 2008, 09:49:18 AM
The most common reason for that error is poor 3G/EDGE reception.  You can verify this by putting your phone in Airplane mode (turns off 3G/EDGE and wifi) and running iCam.  You'll get that same "Can't Connect to Broker Server" message. 

There are other, rarer problems that can cause that error to show up.  If you are pretty sure that you have good 3G/EDGE/wifi signal and you are still seeing this error message, please send an email to support@skjm.com with a description of the error message you're seeing and your iPhone's IP address.  To get your iPhone's IP address, go to http://whatismyipaddress.com in your iPhone's web browser.
Title: Re: Connect iCam Broker Server error
Post by: netis on December 26, 2008, 10:19:01 AM
my iphone connect with same as my pc to linksys WAG325N router, ip adress is 61.142.180.182.

Title: Re: Connect iCam Broker Server error
Post by: Stefan on December 26, 2008, 11:24:21 AM
netis - If you are connecting via WiFi, your network might be configured to block UDP communication ... Have you tried connecting with your iPhone connected both via WiFi and 3G/EDGE? Do you get the same error messages when connected both ways?
Title: Re: Connect iCam Broker Server error
Post by: netis on December 26, 2008, 03:10:06 PM
Stefan - I try to connect via EDGE network to access iCam, but got same error too. sigh. already disable "SPI Firewall Protection" and "Block Anonymous Internet Requests" option  in my Linksys Router. my pc firewall is vista build-in.

I tried all way I know. sigh....
Title: Re: Connect iCam Broker Server error
Post by: Stefan on December 26, 2008, 04:13:22 PM
netis - From your IP address it appears that you are connecting from China ... Do you know if your ISP and/or mobile phone company blocks outgoing UDP traffic? This is what iCam and the iCamSource uses to communicate with the iCam Broker Server.
Title: Re: Connect iCam Broker Server error
Post by: netis on December 28, 2008, 02:18:57 AM
Stefan - I am in China now, My ISP allow UDP traffic, but it blocked some foreign's IP adress, can you tell me iCam Broker Server IP adress?
Title: Re: Connect iCam Broker Server error
Post by: netis on December 28, 2008, 02:29:32 AM
Stefan - I use netstat command see what IP connect when run iCam, it connect 2 IP address, both forward to Google???
Title: Re: Connect iCam Broker Server error
Post by: Stefan on December 28, 2008, 08:29:58 AM
netis - Actually, iCam first creates a brief TCP connection to Google to make sure that the iPhone's internet connection is initialized. (It is a bug in Apple's code, in our opinion, and this is a work-around we have come up with.)  ::)

The iCam Broker Server's IP address is 98.165.121.51.
Title: Re: Connect iCam Broker Server error
Post by: netis on December 28, 2008, 04:52:13 PM
Stefan - First, thanks for your answer, but I give up, because I can't make sure which has problem in my case, maybe Zero config idea is good , but not for me at lease, I can't access any IP address in my country. sigh....
Title: Re: Connect iCam Broker Server error
Post by: Stefan on December 28, 2008, 06:11:51 PM
netis - I am sorry to hear that you weren't able to get things working. The "zero config" feature really isn't the issue, however, since that only applies to you connecting from your iPhone to your computer, and not to you connecting from your iPhone or computer to our server.

Are you even able to ping the iCam Broker Server? (I have edited the firewall to allow it to respond to pings.)
Title: Re: Connect iCam Broker Server error
Post by: netis on December 28, 2008, 08:45:28 PM
Stefan - BIG thanks your make firewall allow ping for my test, I test in my iPhone(EDGE mode & wifi) and laptop, both can ping reachable the iCam Broker Server(98.165.121.51), I am very happy for this.

I found in my iPhone, iCam try to connect 2 IP address, both are google, it didn't connect 3rd IP address?

my iPhone in Jailbreak status, and Unlocked.

sorry for my poor english, I think you very hard talk to me.

Best Regards!
Title: Re: Connect iCam Broker Server error
Post by: Stefan on December 28, 2008, 09:28:18 PM
netis - You may be seeing your iPhone make TCP connections to Google, but the communication to the iCam Broker Server is done via UDP, which is connectionless.

Well, it does appear that our IP addresses are not completely blocked, however it might be an issue with the type of data (UDP) or the port that you are attempting to send to (12613).

Are you familiar with the security tool nmap? http://nmap.org/

If you want you can try to see if the port is reachable from your computer by running the following command once nmap is installed:

nmap -sU -v -p12613 98.165.121.51

Once you do that we can go from there.  :)
Title: Re: Connect iCam Broker Server error
Post by: netis on December 28, 2008, 09:47:58 PM
Stefan - I tried via namp connect iCam server, it seem work, but iCam also notify me can't connect iCam Broker Server, I have not any word for this.

Quote
Starting Nmap 4.76 ( http://nmap.org ) at 2008-12-29 11:50 CST
Initiating Ping Scan at 11:50
Scanning 98.165.121.51 [2 ports]
Completed Ping Scan at 11:50, 0.56s elapsed (1 total hosts)
Initiating System DNS resolution of 1 host. at 11:50
Completed System DNS resolution of 1 host. at 11:50, 0.00s elapsed
Initiating UDP Scan at 11:50
Scanning 98.165.121.51 [1 port]
Completed UDP Scan at 11:50, 5.58s elapsed (1 total ports)
Host 98.165.121.51 appears to be up ... good.
Interesting ports on 98.165.121.51:
PORT      STATE         SERVICE
12613/udp open|filtered unknown

Read data files from: /usr/share/nmap
Nmap done: 1 IP address (1 host up) scanned in 8.92 seconds
           Raw packets sent: 4 (124B) | Rcvd: 1 (28B)
Title: Re: Connect iCam Broker Server error
Post by: Stefan on December 29, 2008, 11:43:35 AM
netis - Well, this is very interesting indeed. I have now set up a packet capture process to log any incoming packets from your IP. Could you try the nmap command again followed by running the iCamSource and iCam so that I can try and capture the incoming packets? Can you also go to http://whatismyipaddress.com/ again to see if your IP address has changed?

Thanks again for your help and patience. :)
Title: Re: Connect iCam Broker Server error
Post by: netis on December 30, 2008, 05:22:14 PM
Stefan - sorry for my late, because these days I am busy, I have 2 days nope sleep until now, this month my company fire some people, I don't want to be next one, sigh.

my ip is 218.13.73.242 , now. I am runing iCam source for Windows 0.3, it start capture a test camera, my username is netis. you can start analyse my packets.

I need goto my bed for take a rest, I am so tire. if you need make more analyse for my case, do you add my MSN talk about it? my MSN address is hessian@21cn.com, nickname also is "NETiS".
Title: Re: Connect iCam Broker Server error
Post by: Stefan on December 30, 2008, 05:31:42 PM
netis - I don't see packets from your computer ... Can you try pinging the iCam Broker Server again?

Thanks ... And yes, get some well-needed rest. :)
Title: Re: Connect iCam Broker Server error
Post by: netis on December 30, 2008, 05:33:23 PM
Stefan - do you need I ping now? ok, I do this.
Title: Re: Connect iCam Broker Server error
Post by: Stefan on December 30, 2008, 05:34:13 PM
netis - Yes please, now will be fine. :)
Title: Re: Connect iCam Broker Server error
Post by: netis on December 30, 2008, 05:37:30 PM
Stefan - I pinging iCam server, now, but the result is "request time out"? I use -t, it will ping iCam server until I break it.
Title: Re: Connect iCam Broker Server error
Post by: Stefan on December 30, 2008, 05:41:07 PM
netis - Request time out? I remember before you were able to successfully ping the server ... Are you on a different computer, perhaps? The server is ping-able from different locations around the US (I just tried) so I am assuming it is being blocked by your network.

Are you going to be able to successfully ping it again?
Title: Re: Connect iCam Broker Server error
Post by: netis on December 30, 2008, 05:45:55 PM
Stefan - it can ping now, but so funny for this, when I disable firewall in my Linksys router, the ping result is request timeout, enable the firewall it can, very funny. hehe.
Title: Re: Connect iCam Broker Server error
Post by: Stefan on December 30, 2008, 05:48:28 PM
netis - Ok, I can see some of your pings ... Are you still running the iCamSource? If not, can you run and start it?

And can you also see if iCam works for you? Thanks. :)
Title: Re: Connect iCam Broker Server error
Post by: netis on December 30, 2008, 05:53:25 PM
Stefan - well, I am runing iCamSource and it capture a test camera, when I run iCam in my iPhone, it also notify me connect iCam Broker Server error, do I stop ping request?
Title: Re: Connect iCam Broker Server error
Post by: Stefan on December 30, 2008, 05:55:47 PM
Actually, I've only seen 6 packets come in. Were you pinging, or did you also run the nmap command? Are the pings reaching the server, or timing out?
Title: Re: Connect iCam Broker Server error
Post by: netis on December 30, 2008, 06:01:07 PM
Stefan - already restart my iCamSource, I can see my cam in iCamSource, I did click start button, the ping result is reachable, also I refresh the iCam in my iPhine, ping is continue in my desktop.
Title: Re: Connect iCam Broker Server error
Post by: netis on December 30, 2008, 06:04:02 PM
Stefan - here is ping result.

64 bytes from 98.165.121.51: icmp_seq=0 ttl=51 time=688.507 ms
64 bytes from 98.165.121.51: icmp_seq=1 ttl=51 time=607.971 ms
64 bytes from 98.165.121.51: icmp_seq=2 ttl=51 time=630.375 ms
64 bytes from 98.165.121.51: icmp_seq=4 ttl=51 time=779.210 ms
64 bytes from 98.165.121.51: icmp_seq=5 ttl=51 time=598.414 ms
64 bytes from 98.165.121.51: icmp_seq=6 ttl=51 time=622.922 ms
64 bytes from 98.165.121.51: icmp_seq=7 ttl=51 time=241.726 ms
64 bytes from 98.165.121.51: icmp_seq=8 ttl=51 time=258.511 ms
Title: Re: Connect iCam Broker Server error
Post by: netis on December 30, 2008, 06:14:24 PM
Stefan - I am set port forward to my desktop iCamSource listen udp port, ip: 218.13.73.242 port: 56849, I think its usefull if you can test it.
Title: Re: Connect iCam Broker Server error
Post by: Stefan on December 30, 2008, 09:01:19 PM
netis - I do see that it is pinging, and actually the packets that I was seeing actually were from the iCamSource. There is an issue, however.

For some reason I am only receiving a very small percentage of the packets you are sending. They are going to the correct port on the server, but the source port keeps changing for some reason. If the port that you are sending data from keep changing, the server won't be able to reply to it. Not that that really matters at this point, because there is also no data in packets. Are you somehow able to remove or disable any firewalls or packet-shaping programs or devices you may have connected to your computer? Perhaps connecting it directly to your cable or dsl modem without a router involved?

I am simply unsure as to the cause of what I am seeing.
Title: Re: Connect iCam Broker Server error
Post by: netis on January 02, 2009, 10:11:09 AM
Stefan - thanks your help for my problem, iCamSource can capture my CAM, so I bough iCam, but infact it can't. I tried all of your sugguest, sigh.

I hope special custom port and address in iCam next version. Thanks!

Best Regards!
Title: Re: Connect iCam Broker Server error
Post by: Stefan on January 02, 2009, 10:32:42 AM
netis - You had mentioned you are running the Linksys WAG325N, correct? This appears to be an ADSL modem + router:

http://www-au.linksys.com/servlet/Satellite?c=L_Product_C2&childpagename=AU%2FLayout&cid=1169671141909&pagename=Linksys%2FCommon%2FVisitorWrapper

Could you try logging into your router and temporarily disabling the firewall and see if your connectivity issues change at all? Basically if you get a different error than the "Broker Connection Error" on your iPhone when trying to connect via WiFi.

Also, do you have any sort of VPN setup in your router?
Title: Re: Connect iCam Broker Server error
Post by: netis on January 02, 2009, 10:41:22 AM
Stefan - Yes, my router is Linksys WAG325N, it run original firmware, it hasn't thirty-part firmware for it, I did it in my router, at first I diable my router firewall and allow anonymous access from Internet, dispear other error info in iCam.

I report some info to support@skjm.com, if you need more info, I will give you.
Title: Re: Connect iCam Broker Server error
Post by: Stefan on January 02, 2009, 10:42:10 AM
netis - Yes, I got your e-mail, thanks. :)
Title: Re: Connect iCam Broker Server error
Post by: Stefan on January 03, 2009, 12:10:49 PM
Just one final update to note that the problem has been resolved. :)

netis, who is based in China, was running Hotspot Shield VPN (http://www.hotspotshield.com/) software which was masking his computer's IP address to the iCam Broker Server. If you are accessing the Internet through a proxy or VPN, iCam may not work for you.

The other issue was that we have used a *.dyndns.org entry to resolve the iCam Broker Server's IP address, which consequently is not resolved correctly by China's "Great Firewall". We will be releasing new versions of the iCamSource and iCam to use a *.skjm.com name to resolve the IP address.

Many thanks to netis for his exceedingly abundant help and patience.  ;D
Title: Re: Connect iCam Broker Server error
Post by: netis on January 03, 2009, 02:33:23 PM
Stefan,

I know.  ;D