Client to client behind different NATs

208 views
Skip to first unread message

Ovian Sen

unread,
Oct 2, 2015, 11:50:34 AM10/2/15
to TURN Server (Open-Source project)

Hi,

I could run successfully
udp_client.sh (behind NAT)<--> relay.sh (Public IP) <--> peer.sh (Public IP)

how can i run this set up (client 2 client, both clients are behind different NATs )
udp_client.sh (behind NAT)<--> relay.sh (Public IP) <-->udp_client.sh (behind NAT)

I am have the local IPs and reflexive addr of all the PCs behind NAT using STUN.

 I am confused here, as i am not receiving back any packets,
turnutils_uclient -D -n 1000 -m 10 -l 171 -e "reflexive IP" -g -X $@ "realy IP"

Thanks
Ovi

Oleg Moskalenko

unread,
Oct 2, 2015, 12:12:08 PM10/2/15
to Ovian Sen, TURN Server (Open-Source project)
Look at c2c example scripts. The key is -y option.

Sent from my iPhone

> On Oct 2, 2015, at 8:50 AM, Ovian Sen <ssen...@gmail.com> wrote:
>
> ------=_Part_433_569672292.1443801033997
> Content-Type: text/plain; charset=UTF-8

Oleg Moskalenko

unread,
Oct 2, 2015, 12:14:21 PM10/2/15
to Ovian Sen, TURN Server (Open-Source project)
... But c2c scripts are about emulating clients for the same NAT. If you have different NATs then you have to write your own client simulation program.

Ovian Sen

unread,
Oct 2, 2015, 12:21:14 PM10/2/15
to TURN Server (Open-Source project), ssen...@gmail.com


Thanks Oleg.

Is there any example program to simulate C2C behind 2 different NATs. 
Or Could you suggest any web/other application example that i can take it as starting point..

Thanks
Ovi

Oleg Moskalenko

unread,
Oct 2, 2015, 3:09:50 PM10/2/15
to Ovian Sen, TURN Server (Open-Source project)
turnutils_uclient works for different clients behind the same NAT.
This is just about the IP address configuration. You can use that as
an example; if you can figure out the algorithm, then it would be not
difficult to add another config parameter, and make clients to connect
to each other, thru TURN server.
> --
> You received this message because you are subscribed to the Google Groups
> "TURN Server (Open-Source project)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> turn-server-project-rfc57...@googlegroups.com.
> To post to this group, send email to
> turn-server-project...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/turn-server-project-rfc5766-turn-server.
> For more options, visit https://groups.google.com/d/optout.

Siva Sen

unread,
Oct 2, 2015, 3:15:12 PM10/2/15
to Oleg Moskalenko, TURN Server (Open-Source project)
Thanks a lot Oleg. I ll dig into that.

I read one of the forum answer that, TURN Server will not support web server as one side client in P2P communication as http is only supported for admin. Is that correct understanding?  


Thanks
Ovi

Sent from my BlackBerry 10 smartphone.
  Original Message  
From: Oleg Moskalenko
Sent: Friday, October 2, 2015 3:09 PM
To: Ovian Sen
Cc: TURN Server (Open-Source project)
Subject: Re: [RFC5766-TURN-SERVER 1997] Client to client behind different NATs

Oleg Moskalenko

unread,
Oct 2, 2015, 4:17:13 PM10/2/15
to Siva Sen, TURN Server (Open-Source project)
On Fri, Oct 2, 2015 at 12:15 PM, Siva Sen <ssen...@gmail.com> wrote:
> Thanks a lot Oleg. I ll dig into that.
>
> I read one of the forum answer that, TURN Server will not support web server as one side client in P2P communication as http is only supported for admin. Is that correct understanding?

There are so many errors in this statement that I just do not know
what to say. That's is totally messed up. There are so many people in
Internet giving statements and advises about something that they have
no clue about.

TURN is a separate protocol. It is not HTTP.

Web Server or Web client are not using HTTP for the TURN server communications.

Https connection to the TURN server is for administrative purposes only.

Caroline P

unread,
Nov 28, 2017, 6:17:13 PM11/28/17
to TURN Server (Open-Source project)
hi, Ovi,

I was wondering if you can share your codes for c2c ?

Thanks

CP
Reply all
Reply to author
Forward
0 new messages