Questions tagged [ice4j]

Java based implementation of the Interactive Connectivity Establishment (ICE) protocol that would be usable by both SIP and XMPP applications

The Interactive Connectivity Establishment (ICE) protocol combines various NAT traversal utilities such as the STUN and TURN protocols in order to offer a powerful mechanism that allows Offer/Answer based protocols such as SIP and XMPP to traverse NATs.

ice4j provides a Java implementation of the ICE protocol that would be usable by both SIP and XMPP applications. The project also provides features such as socket sharing and support for Pseudo TCP.

16 questions
5
votes
2 answers

Ice4j: What to do once an Agent has finished processing?

I am trying to use ice4j in a simple application, but I don't know what to do once an ice Agent finishes processing. Can an application actually write to an IceMediaStream? If not, how can I gather the information to create a stream that I can write…
DankMemes
  • 2,085
  • 2
  • 21
  • 30
3
votes
1 answer

Ice4J: Ice State Failed on 4G network

Does anyone know how to do the TURN portion of Ice4j? I've managed to code it so that it works when the phone is on WiFi, but not when its on the mobile network. I'm sending agent info via TCP and then building the connection manually instead of…
putty174
  • 305
  • 5
  • 19
2
votes
0 answers

ICE, SDP Parse exception

I am trying to implement Ice4J into my Android application, but I am stuck at following piece of code: NistSdpFactory factory = new NistSdpFactory(); SessionDescription sd = null; try { sd=factory.createSessionDescription(); /* put some…
user704565
2
votes
1 answer

How modify ice4j LocalCandidate

I am using libjitsi / ice4j in my server application and would like to modify my local candidates before I call Agent.startConnectivityEstablishment(), is there a way to modify the priority or any other property to force prioritization of one…
Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131
2
votes
1 answer

Ice4j: Find remote Agent

I'm trying to use Ice4j, but there are no tutorials for it or anything. I have tried looking at the source code, but everything goes somewhere else and nothing is explained. I've read the IcePseduTcp test and I want to implement my own but the…
putty174
  • 305
  • 5
  • 19
1
vote
0 answers

ICE4j session description parsing on Android

I'm trying to use jitsi/ice4j on Android but i'm having trouble with a NullPointerException in a dependency, namely jitsi/jain-sip, jitsi-oss-only. It occurs when trying to parse a Session Description, in the LexerCore class. There's a similar…
rtp
  • 13
  • 4
1
vote
1 answer

java ice4j conflict with nist-sdp package

In my project, below code sample works without ice4j package: import javax.sdp.*; public class Hello { public static void main(String[] args) throws Throwable { SdpFactory factory = SdpFactory.getInstance(); } } But if I…
lucky1928
  • 8,708
  • 10
  • 43
  • 92
1
vote
1 answer

How to receive public IP and Port using Stun and ice4j

I'll try to be brief. I wish to create communication between 2 java apps (that will later be transported to android) without passing through a server. As such, I have spent weeks looking around, and after a lot of work I found stun and ice4j. The…
RaKXeR
  • 152
  • 2
  • 16
1
vote
2 answers

ICE4J DatagramPacket too small

Regular DatagramSocket works fine... ICE4J DatagramSocket seems to truncate data!? The sending size packet is 2,500 but the receiving end is always 1500 (with regular Java DatagramSocket the receive packet size is the same as the send size). Receive…
msj121
  • 2,812
  • 3
  • 28
  • 55
1
vote
1 answer

Ice4j: Testing IcePseudoTcp - STUN server needed?

Does anyone know the process of testing IcePseduoTcp? Is it self contained, or do you have to point it to a STUN server for it to work?
putty174
  • 305
  • 5
  • 19
0
votes
0 answers

Which value should isControlling have in ice4j Agent?

In all the ice4j examples (for example) the agent is set to setControlling(true) for one site and setControlling(false) for the other site. Which value must I set if the other site is a browser? I can modify it only on the Java site in this case. Or…
Horcrux7
  • 23,758
  • 21
  • 98
  • 156
0
votes
1 answer

What are required parameters for an ICE candidate?

If I call toString() from a org.ice4j.ice.LocalCandidate object then I receive an output like: candidate:1 1 udp 2130706431 192.168.233.1 10000 typ host The candidate which I receive form a browser look different: 2791736470 1 udp 2122063615…
Horcrux7
  • 23,758
  • 21
  • 98
  • 156
0
votes
0 answers

Which transport protocol I need for a turn server with ice4j?

Which transport protocol I need to use for the follow ice4j code? Transport transport = ?; TransportAddress ta = new TransportAddress( hostname, port, transport ); LongTermCredential credential = new LongTermCredential( username, password…
Horcrux7
  • 23,758
  • 21
  • 98
  • 156
0
votes
1 answer

ice4j connectivity on internet

I downloaded ice4j and was trying Icedistributed example(https://github.com/jitsi/ice4j/blob/master/src/test/java/test/IceDistributed.java) on two machines that are on the internet. If I run this example on two different machines in my LAN, this…
ashishgupta_mca
  • 578
  • 6
  • 27
0
votes
0 answers

ICE4J gets only local IP

I have it connecting over the local intranet fine, but of course the point is outside of my router and I am having issues. I don't think I see public IP addresses in the list is the issue. SDP information generated by…
msj121
  • 2,812
  • 3
  • 28
  • 55
1
2