It's not a secret anymore!
The moose likes Other JSE/JEE APIs and the fly likes JMF Audioconference with PC in a LAN Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JMF Audioconference with PC in a LAN" Watch "JMF Audioconference with PC in a LAN" New topic

JMF Audioconference with PC in a LAN

Jesus Fernandez

Joined: Aug 11, 2003
Posts: 14
Hi there,
i have an audioconferencing JMF application that works between PCs if i know their IPs, but ...
when i try to connect between a PC in a LAN that conects to Internet through on a router, i dont know its IP. I just known router's IP, and it doesn't work.
I solved the problem modifying configuration of the router, basically with NAPT, using port forwarding in the router. You can say the router that all incoming UDP data through a port xxxx from external PC was forwarding to a node with its IP LAN through a port yyyy
But this is not a good solution because the application's users usually dont allow to access the router
Any suggestions?? I think Messenger and Netmeeting use a code to scan free ports or anything else.
Thanks in advance
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
Welcome to the Ranch, Jesus.
I am also writing a voice chat with JMF.
Some comments:
RTPManager seems unreliable because it does not issues all the events I need. Specially it does not provide the ReceiveStremEvent and others from which the ReceiveStream to play could be extracted.
Are you using this class for several participants and I missed something?
Now, a test program with DataSink works properly. But it demands a port for each pair of participants.
By the way, I would need someone with an ADSL device to test three participants over the net. If you have some time to spare please send me a private message.
Regarding the scanning of ports, given that a NAT closes all the ports for incoming conections, the ones that are open should be assigned to a particular program (say e-mule etc). Thus the scanning is of no use, and, I am afraid, there is no other solution that opening new ones for our program.

SCJP2. Please Indent your code using UBB Code
I agree. Here's the link:
subject: JMF Audioconference with PC in a LAN
It's not a secret anymore!