RTMP_Connect0, failed to connect socket. 51 - ios

i want to use live audio streaming with wowza server,
i have implement RTMP Client for do this, this working fine in ipv4 network, but when i switch my network ipv4 to ipv6 then i got error.
error is: RTMP_Connect0, failed to connect socket. 51
this error is coming on RTMP_Connect(pPlayRtmp, NULL)
any one have idea about this.
Thanks in advance.

To use IPv6 networking with your Wowza server, you would need to have these settings in place:
Your server supports IPv6 networking.
You have at least version 7 of Java installed (recommend using the JVM that comes with the Wowza installation, which should be version 8 as of Wowza 4.5).
You've changed the following configuration files on your Wowza installation path.
For Linux, open the file [WowzaInstallPath]/bin/setenv.sh and set the following line to false
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=false"
For Windows, use the file [WowzaInstallPath]\bin\setenv.bat
set JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=false
Test streaming by using the following URL in an RTMP player:
rtmp://[::1]/vod/mp4:sample.mp4

Related

Trying to setup Neo4j 3.2.0 in ubuntu server

I am trying to setup Neo4j version 3.2.0 in the ubuntu server 14.04.2 LTS
Downloaded the tar and extracted the folder, edited the config file to update the port to 4444, for the time being disabled the bolt connector, listen_address to 0.0.0.0 for the http connector, authentication also disabled just to get started.
bolt connector is updated with the port 7687 even though it is disabled as i was trying earlier with it enabled.
Now when i try to connect to the http://serverip:4444/browser, it says Database access not available and shows me the login screen with host prefilled bolt://serverip:7687
Also I see this error on the console window
WebSocket connection to ws://serverip:7687/
failed: Error in connection establishment:
net::ERR_CONNECTION_TIMED_OUT
Dont understand the issues here, please help me out. I am not sure why is it trying to do a WS to the port assigned to the bolt, when it is disabled at the first place.
Regards
There's a bit of juggling going on for HTTP connector support between the browser and the driver being used, a handoff which isn't complete, and the state of things is the browser is only supporting bolt connections right now.
The javascript bolt driver is being upgraded to handle http connections, I think, so you may need to wait until the next 3.2.x release to use the http connector again.
I think this issue should be tracking it.

Connecting to Java Server from iPhone Chat application using Socket

One of my iOS developer is trying to connect to my Chat Application server which is developed using Socket (Java).
When he tries to connect to Server using GCDAsyncSocket during debug I can see readStreamHeader() is executing which is throwing StreamCorruptedException.
Same thing is happening when I do telnet using cmd : telnet localhost 13000
I'm able to connect with my java created client application but not with iOS client. I believe socket in java and in iOS have different way of communication. Please HELP !

Amazon EC2, WOWZA not responding on port 8086

I have Amazon EC2 m1.medium instance running. I have download key pair (.pem) file and am able to connect via Putty.
After accessing console (via Putty) I use
sudo -s command for root access otherwise console prompt "Permission Denied".
Now WOWZA has been installed and running but WOWZA does not respond on 8086 port. I have my own security group and port 8086 open.
WOWZA should respond here http: / / IP:8086/ (I have elastic IP).
I have WOWZA running on t1.micro instance but now I need WOWZA on m1.medium instance.
When I connect via Flash I get error -->NetConnection.Connect.Failed (undefined)
Please help me out. IS this problem of installing wowza as a Sudo - s ?
Thanks
actually you had to paste wowza startup log here.
IMO you probably didn't start it.
Please check the InBound Rules defined on your firewall security.
Goto Windows Firewall and Security Settings.
Check the Port open for 8086, if not add custom rule with reference to InBound Rule->Custom and add the specific port i.e.8086. Complete the wizard and then restart the wowza server.

crtmp unable to read data tcpcarrier.cpp error

I have server with apache2 listening on port 808 instead of port 80 or 8080. I have a flash program which genrated video stream from webcam on client side and send it to server at ip address with rtmp protocol like "rtmp:///flvplayback/"
it publishes the stream to that ip address
1 ) on local machine the string looks like
"rtmp://192.168.1.12/flvplayback/"
and works fine.
2 ) on remote machine i.e VPS the string looks like
"rtmp://222.222.222.222/flvplayback/"
and here the following error is generated
(crtmpserver running on VPS is generating this error ) .... /tcpcarrier.cpp:78 Unable to read data. 111.111.111.111:33984 -> 222.222.222.222:1935 ....
I am not sure why this error is being genetrated.... I am using ubuntu12.04 crtmpserverr build from Download section of site rtmpd.com The same build works totally fine on my local machine.
I think you should follow the steps here: http://wiki.rtmpd.com/quickbuild
The builds on the site are quite old. The sources are much newer
Can you also provide some log files as well? I don't remember exactly... did you put this question on the crtmpserver's mailing list as well?
Best regards,
Andrei

Connect to local web service (running under MAMP) from iPhone via WIFI.

I have setup a local REST webservice with MAMP.
I have setup a virtual host with the url "http://aem.davidcasillas" pointing to my public folder.
MAMP is listening on port 80.
If I access via Safari to "http://aem.davidcasillas/webservice/rest/getEventosToday" I get the correct json data.
Now I'm trying to access this web service from my iPhone application. I run it from XCode into the device.
The device is connected to my local network via WIFI, and the connection is working (I can load webpages in safari)
I'm using RestKit to download the data and I'm trying to reach it with the same url I use in my Mac: "http://aem.davidcasillas.es/webservice/rest/getEventosToday".
In the device I get the error:
NSURLErrorDomain -1003 Found no server for the specified host name.
How should I write my url so I can reach the web service from the iPhone?
NOTE: I have read this post: test local websites with mamp on iphone? but none of this problems apply to my case. I have firewall disabled and my config.ini file shows the following listen line:
Listen 80
I have found a workaround.
I use the WIFI ip address in SystemPreferences->NetWork in my Mac and then the whole path to the resource, so instead of:
"http://aem.davidcasillas.es/webservice/rest/getEventosToday"
I am writing:
"http://192.168.1.6/aem.davidcasillas.es/public/webservice/rest/getEventosToday"
The 192.168.1.6part takes me to my local installation root folder /Applications/MAMP/htdocs/.
In the rest of the path I have to put the whole path to the resource. Notice that I have to include the public folder in the path. Hope I could use my virtual host setup, but have not found a way.
When I run hostname, it prints out
> hostname
ddopson.local
You can edit this in System Preferences ==> Sharing ==> Computer Name(text box at the top). Note that in the "computer name" textbox, I filled in "ddopson".
If you are on WiFi, you should be able to connect to that hostname (ddopson.local) from your iPhone. This works because both iOS and your Mac support Multicast DNS where a multi-cast UDP packet is emitted onto the L2 network to lookup local hostnames. When your Mac hears this multi-cast packet, it will reply to your iPhone with its ip-address and off you go.

Resources