aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Sending video streams to a remote computer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Sending video streams to a remote computer " Watch "Sending video streams to a remote computer " New topic
Author

Sending video streams to a remote computer

Sameera Abeysinghe
Ranch Hand

Joined: Nov 15, 2004
Posts: 104
Hi all,

I am coding video conferencing software. I am using RTP manager to send the video. But the class I am using is asking the remote IP address. But as you all know we don�t get the real IP address in the Internet. So can any one tell me how can I send my video stream through the Internet?

Thank a lot

[ EJFH: Request to take this offline removed. We don't do that here. ]
[ June 27, 2005: Message edited by: Ernest Friedman-Hill ]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Pleaee do not post the same question to multiple forums -- especially to five different places, and especially if not a single one of them is relevant in any way to the question! It just wastes peoples time: first, by potentially answering a question that's already been answered elsewhere; and second, my time was wasted cleaning up after you. This is the last copy of your message that's left, and I'm moving it to the "Sockets and Internet Protocols" forum, where it would at least be on-topic.


[Jess in Action][AskingGoodQuestions]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

It is not true that "you don't get the real IP address on the Internet." What is true is that some machines are behind NAT (network address translation) firewalls, which let many machines share a single IP address. When this is the case, the individual machines behind the NAT have no "real" address; they have an address on the subnet behind the NAT, and the NAT has an Internet address and knows how to forward to the machines behind it. There is no way to initiate a connection to a machine behind a NAT firewall unless the firewall cooperates: many NATs have a "DMZ" feature that allows incoming connections on specific ports to be routed to a specific internal machine. The firewall has to be manually configured this way, and so of course this is impractical for anything larger than a home network.

To get around this, you have to arrange things so that the client machine opens the original connection to the server, and have the server send the data through this same connection; the NAT box then routes the data to the proper machine.

Note that some services of this type simply refuse to work with NAT setups, although this is becoming less and less common.
Sameera Abeysinghe
Ranch Hand

Joined: Nov 15, 2004
Posts: 104
Thanks a lot for the answer

I did not know about this �DMZ feature� but I will find out about it.

I am coding video conferencing software where 4 to 6 people can login and have a conference. The video has to be distributed only within these people. I found out about this java media framework JMF. It gave me two files that I can use to transfer and receive real time videos.

http://www.cs.odu.edu/~cs778/spring04/lectures/jmfsolutions/examplesindex.html

AVTransmit2.java from transmitting
http://www.cs.odu.edu/~cs778/jmfexamples/AVTransmit2.java
AVReceive2.java from receiving
http://www.cs.odu.edu/~cs778/jmfexamples/AVReceive2.java

Receiving is ok. But for transmitting the file ask the IP address of the destination.

So now I come back to my questing that has posted above. No need to explain it again.

Am I missing some java technology hear or as you explained in the answer will this work when published in the inter net.

If I am reporting the same questing sorry for that I am not new to java. But I am not good when comes to Internet stuff.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

I don't know much about JMF, but I'm sure there are people around who know more than me. I'm sure it's possible to do client-initiated streaming, though. Anybody listening?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending video streams to a remote computer