Voice chat for LAN Working :) , but For Internet Voice Chat Not Working
Hi, all I have developed voice chat for lan , but when i try to connect to internet it doesn't working. Pls let me know the reason why is it so?
I am behind the Firewall and firewall doesn't allow me to connect to server or transmit RTP data to the another User. Why is it So. Please Reply As Soon As Possible!!!!
[328 byte] By [
Sunaya] at [2007-11-26 22:46:16]

# 1
well, are you inside school campus, or company/oganization or are you using and ADSL modem at home?
# 2
Hello,
I am inside the Organization. Sorry for late Reply. I am inside the organization. There is one http proxy which intercept between me and outside --> that is internet. and firewall also sits between it. Now plz give me the guidance how to get out from this problem.
with Regards
Sunay
Sunaya at 2007-7-10 12:04:23 >

# 3
:) You should contact your network admin and ask him/her to open specific ports for you for both incoming and outgoing UDP traffic. You should better know, which ports your chat program uses.
I hope your organization doesnt use private IP address space (e.g 192.168.x.x or 10.x.x.x). If so, you wouldnt be able to use your chat anyhow w/o an RTP proxy. Do you use direct connection (use IP address) from client to client or do you have some signalling protocol to handle session establishment? SIP or H.323 perhaps?
# 4
Thanks for early reply,
but i cant understand the below text,
I hope your organization doesnt use private IP address space (e.g 192.168.x.x or 10.x.x.x). If so, you wouldnt be able to use your chat anyhow w/o an RTP proxy. Do you use direct connection (use IP address) from client to client or do you have some signalling protocol to handle session establishment? SIP or H.323 perhaps?
Let me tell i am student of mca and joined one org as project trainee, the time is to less for me. i have read all your questions and reply in the forum. Now it seems that you have implemented the voice chat for internet.
Now my problem is i have already developed p2p voice chat for lan. I want to implement it for the internet. Now the problem is firewall doesn't allow me to connect to the remote user. who may/may not behind the firewall.
How to reach to the remote user? pls help me as soon as possible
Let me tell that there is one proxy server lies between me and server. My IP address is 192.168.19.107 and my proxy server ip is 192.168.19.81
Message was edited by:
Sunay
Message was edited by:
Sunay
Sunaya at 2007-7-10 12:04:23 >

# 5
That's exactly what i am talking about. Your IP address is private. Means, it is not routable outside your organization. Means, that you cannot receive anything from outside, because technically this private address does not exist outside your network.
However, you might be able to send audio to someone outside who has public IP address (PLEASE, read up about private and public IPv4 addresses and NAT in order to understand what your problem is. Just one Wiki page that you can dig up in Google.com).
Now you simply cannot use your chat from inside your organization to chat with outside people. It will not work. You need public IP addresses in both ends (i.e. you and remote party) + firewall rules must allow UDP traffic for certain ports, that your program uses.
If you want to overcome private addressing problem manually, i dont know how to do it. But what i know for sure is that it would be painful. My application that i made uses a VoIP server (SIP server and an RTP proxy server). These servers do private address handling (NAT handling) for my audio/video streams.
You have an option though. Go to your network admin and lick his/her brain. Ask for a public IP address (they might have some in reserve). Do the same thing at the remote end.
# 6
Then how yahoo! messenger or GTalk! Messenger works. I am using the yahoo messenger's or gtalk's facilities. In that i am providing my http proxy settings like password and username as well as port can i not do same like that plz reply as soon as possible.
In my organization when i download the messenger like gtalk or yahoo messenger then i have to just apply settings as above i have mentioned and can easily use the functionalities of voice chat and so on.
Can i not do like the same? please reply soon
Thanks in Adavance
Sunay Shah
Sunaya at 2007-7-10 12:04:23 >

# 7
Yahoo and Gtalk have a many techniques and/or protocols to guarantee that their RTP will pass through w/o problems.
first of all, Yahoo!, MSN, Skype, Gtalk they are not barefoot RTP sending programs. they use protocols to negotiate their audio/video first (much like SIP with SDP). then they would use some firewall/NAT resolution technique like STUN, TURN or ICE in order to successfully let their audio/video traverse private and public networks alike. Skype, for instance, can become a relay node (RTP relay), thus providing a distributed architecture to solve firewall/NAT problems in various networks. On top of that Skype will never stop scanning for open ports in your network. It's almost impossible to block. Ask your network admin ;)
# 8
Can you use some existing voice chat? I'd recommend sip-communicator (https://sip-communicator.dev.java.net/). Register yourself a free SIP account at www.freeworlddialup.com or www.iptel.org and use your voice chat as much as you want :)
SIP-Communicator works with JMF and has extended audio codec capabilities (which you dont have to install, btw). These guys have added aLaw, ILBC and Speex on top of what JMF already has. You can use your MSN, Yahoo!, Jabber and other accounts.
# 9
on the other hand, download X-lite SIP client from http://www.counterpath.com/index.php?menu=download. Use the same accout you've made in freeworlddialup or iptel. X-Lite even supports video chat.
# 10
Thanx for the Links you have sended,
but i want to develop it my self. Pls let me know if there is way to get out from these burning situation. I want to develop it by myself. If it is possible then let me know plz.
Hey What do you think about HTTP Tunneling? Would it work for me? pls let me know
Sunaya at 2007-7-10 12:04:23 >

# 11
Can you program in C?
# 12
No, I am working in java. And i am new in java. but why? I can make program in c upto some extents :)with regardsSunay Shah
Sunaya at 2007-7-10 12:04:23 >

# 13
there's a wonderful and easy to use SIP stack API. It's called pjsip (www.pjsip.org). You'd spend 2 days understanding API, but in the end you can create a SIP client with voice chat very easily (command line). However, you'd have to create GUI in C as well. Do you know anything about SIP, btw? Jabber? H.323?
# 14
you are right but the requirements of the organization is i have to develop the whole Voice chat in Java only. please guide me what to do? Till now i have developed voice chat thru JMF only. Is it possible to interact with the ineternet. Organization may purchase software to cross the proxy but it would be great if i develop it by myself or any other open source
Sunaya at 2007-7-10 12:04:23 >

# 15
Hi! i have dont have of ur mail but i also want to transfer live audio on like lecture on the network LAN as well as WAN could u help me in thisregards Sahrish
# 16
sure, my mail id is sunaymca@yahoo.comwhich type of help you require?with regardsSunay Shah
Sunaya at 2007-7-21 19:14:21 >

# 17
you are right but the requirements of the organization is i have to develop the whole Voice chat in Java only. please guide me what to do? Till now i have developed voice chat thru JMF only. Is it possible to interact with the ineternet. Organization may purchase software to cross the proxy but it would be great if i develop it by myself or any other open source
andreyvk it means JMF only supports voice chat only for LAN? I think so there should be some tricks to deals with the Situation
Sunaya at 2007-7-21 19:14:21 >

# 18
there's a SIP stack in Java called JAIN-SIP ( http://jain-sip.dev.java.net) if you want to develop a SIP application.btw, tunneling might work though... you can give it a try.
# 19
Once again Thax for your kind reply,
Andryek let me tell that in our organization the client messenger is already developed and now i have to integrate the voice chat with it. So I have already refered JAIN-SIP and i thing that when u use it it will be web based client, and messenger is already developed with swing components then there might be integration problem.
With Regards
Sunay Shah
Sunaya at 2007-7-21 19:14:21 >

# 20
No. You've got me wrong. Swing is what you actually should use. web-based integration might not work because of security reasons with Java. many ppl have problems integrating JMF into an applet, so be careful.
# 21
Sorry for wrong interpreting your statement.
Let me tell that I have developed Voice chat for Lan Like Windows Application.
1) I Have used swing components.
2) Used Socket Programming with UDP and TCP Sockets.
3) Used Java Media Framework for the Voice Support.
My Question is what would be the 4th Step to make run application on Internet? for that i have to use JAIN SIP according to You? I am interpreting right or wrong. plz help buddy from get out from this burning situation.
Let me tell that the firewall problem is solved. because i have kept the port for voice transmission is open. Now is it require to pass the proxy?
Genuienly, I am new to this forum as well as in Java World. And your much help is really appriciable. :)
thanx
With Regards
Sunay Shah
Sunaya at 2007-7-21 19:14:21 >

# 22
Hi,
Ok. Forget about JAIN-SIP for now...
1) You were saying your company already has a messenger. How does it work? Which protocol does it use to send messages, for example (dont say UDP or TCP.. i mean higher level protocols, like SIP, Jabber, mayber proprietary)?
2) I am saying again: you are in a private network. This makes it difficult for RTP to work with outside world. My advise is to read about RTP and NAT (here's one link http://www.voip-info.org/wiki/view/NAT+and+VOIP).
Myself, i've never dealt with http proxy for RTP relay, but im still wondering, why you have to worry about HTTP proxy? It's for http, not rtp.
.
# 23
Thanx for Reply,
Andrvyk now i am getting the things gredually, Now Let me tell that i m transffering RTP Media over UDP sockets which is thru the RTPCustomAdaptor.java file which is given in the tutorial of Jmf with avtransmit3, avrecevier3. now tell have i send proxy information for that.
and let me tell that my organization has already developed messenger with XMPP protocol, which is by Jabber's smack Library. now i have to develop
voice chat and integrate it with that one which is already developed.
Give me suggestion regarding that.
Let me clear myself that is it not possible to develop voice chat for the internet through the Java Media Framework
With Regards,
Sunay Shah
Sunaya at 2007-7-21 19:14:21 >

# 24
Finally, we are getting somewhere :) so, you are using Jabber then.. well, you have to work close with those ppl, who made this messenger. they need to add a call functionality (in Jabber it's called Jingle as far as i know) to this messenger and add NAT traversal components (like media relay proxy).
I dont know the details of implementing NAT traversal in Jabber, sorry. Here i cant help you much.. You've got to sign up to some Jabber forum for making calls in Jabber and ask questions there.
# 25
Let me tell that there is no Java Libraries for supporting Jingle. I think you know that Gtalk is already developed with the help of Jabber's Libjingle library which is fully C++ based library. So i just want the voice chat to be developed by JMF only. Is there no any solution. Can i not integrate messenger developed in jabber with my Java Media Framework developed Voice chat.
Its very confucing to me (?) , plz reply
thanx
Sunay Shah
Sunaya at 2007-7-21 19:14:21 >

# 26
Yes, you can and you will integrate your voice chat with existing messenger, however, there will be no NAT handling as of current status of your chat. is there anyone else involved in this project? what about those ppl who developed ur messaging client?
# 27
Let me tell that its only a single man army :) and its me only involved in this project. Let me tell there is no NAT in our Company. My basic purpose is only run the voice chat in live that is internet environment. One of the guy has developed the whole messenger but he is right now on another definition and i have to develop the voice chat alone.
With Regards,
Sunay Shah
Sunaya at 2007-7-21 19:14:21 >

# 28
How can you say that there is no NAT in your company when your IP address is 192.168.19.107?
# 29
sorry, ya there is NAT in the Company, Anyway any Idea to get deal with this, If i fetch my public IP and send to the server at the time of connecting to the server. and sever will dealve it with is it possible or
i have searched below link, is it possible thru this plz check it for me
http://floatingsun.net/articles/java-proxy.html#Introduction
Once Again Pardon me if mistake made by me in interpereting or abt my misconception really i m new to this field
with Regards
Sunay Shah
Sunaya at 2007-7-21 19:14:21 >

# 30
I dont know if it is going to work, because I've never tried to do any RTP transmission over HTTP proxy with JMF, but you can give it a shot :)
# 31
Good morning,Hi have you checked the link that i have sended to you. plz check it for me. if you hv any example. I have scared resourcesThanx With RegardsSunay Shah
Sunaya at 2007-7-21 19:14:29 >

# 32
yup. i've seen your link.. it's just to make java's socket, http or ftp connection use proxy. im saying again, i've never tried this, so i cant tell you if it's going to work.... :)
# 33
thnx for the reply andryvk.
Ok, Andryvk forget abt the http tunneling because it gives the Jitter effect when you are trying to bypass the firewall. Is there any mechanism to delve this problem.? Have any idea or suggestion in which way i can improve my search?
thanx
With Regards
Sunay Shah
Sunaya at 2007-7-21 19:14:29 >

# 34
how can i enable voice chat using proxy settingand start pal talk using lan card
# 35
Hey Andryek I havn't got solution but new lots of new things and so these duke star is for you
Sunaya at 2007-7-21 19:14:29 >

# 36
Hey Andryek I havn't got solution but i know lots of new things and so these duke star is for youMessage was edited by: SunayMessage was edited by: Sunay
Sunaya at 2007-7-21 19:14:29 >

# 37
hi thanx for wonderful and interactive conversationMessage was edited by: Sunay
Sunaya at 2007-7-21 19:14:29 >
