Skip to main content

relay, rendezvous and nat

3 replies [Last post]
buzzheavyyear
Offline
Joined: 2005-06-18
Points: 0

I have two edge peers and a rendezvous/relay. I would like to send a message from edge peer A to the edge peer B and then respond with a reply message from peer B to peer A. Multicasting & http turned off, just tcp.

Two scenarios - one locally, and one across the internet:

1. edge peers on same subnet, different subnet for rendezvous/relay

Both edge peers connect to the rendezvous and a message is sent from A to B, which responds with a message back to A.

2. Peer A is now sitting somewhere on the internet (wireless broadband) and the rendezvous/relay is somewhere else (cable broadband) - public tcp address set. Peer B sitting behind the same nat as the rendezvous/relay with the same configuration as Peer A (ie default edge peer) but on a separate subnet.

Both peers connect to the rendezvous relay. Peer A sends the message which is routed via the rendezvous/relay. Peer B attempts to create an EndPointMessenger for Peer A - for receiving an incoming Endpoint Router Message (see below). The local interfaces to Peer A are defined (10.49.113.56) with other interfaces when the laptop is connected another lan (192.168.0.178). The reverse hop through the rendezvous/relay is also defined (urn:jxta:uuid-7B74D248F15740558A84BDA8BFBA3A56C43E3588340B407984CEA4EF8590F41B03)

18-Jun-2008 19:08:34 net.jxta.impl.endpoint.router.EndpointRouter processIncomingMessage
FINE: Endpoint Router Message :
src=jxta://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603
dest== jxta://uuid-AC2F1077DE20424CA6D487D07A90C05FA2021C94DE274FE992D3A6DDC5E05E1C03/urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000205/uuid-37D8152CF94F4FCEB689A2A532E479F602IRes
lastHop= jxta://uuid-7B74D248F15740558A84BDA8BFBA3A56C43E3588340B407984CEA4EF8590F41B03
embedded radv= Dest APA : PID=urn:jxta:uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603
Addr=tcp://10.49.113.56:9701
Addr=tcp://192.168.0.178:9701
Addr=tcp://[fe80:0:0:0:0:5efe:a31:7138]:9701
Addr=tcp://[fe80:0:0:0:0:ffff:ffff:fffe]:9701
Addr=tcp://[fe80:0:0:0:ad66:a7e0:3be7:eb10]:9701
Addr=tcp://[fe80:0:0:0:ccf3:2a9:375c:d49a]:9701
Addr=cbjx://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603
Addr=jxtatls://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603

Reverse Hops: [0] urn:jxta:uuid-7B74D248F15740558A84BDA8BFBA3A56C43E3588340B407984CEA4EF8590F41B03
18-Jun-2008 19:08:34 net.jxta.impl.endpoint.router.EndpointRouter setRoute
FINE: setRoute:
18-Jun-2008 19:08:34 net.jxta.impl.endpoint.router.EndpointRouter setRoute
FINE: Dest APA : PID=urn:jxta:uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603
Addr=tcp://10.49.113.56:9701
Addr=tcp://192.168.0.178:9701
Addr=tcp://[fe80:0:0:0:0:5efe:a31:7138]:9701
Addr=tcp://[fe80:0:0:0:0:ffff:ffff:fffe]:9701
Addr=tcp://[fe80:0:0:0:ad66:a7e0:3be7:eb10]:9701
Addr=tcp://[fe80:0:0:0:ccf3:2a9:375c:d49a]:9701
Addr=cbjx://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603
Addr=jxtatls://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603

........

18-Jun-2008 19:11:34 net.jxta.impl.endpoint.tcp.TcpTransport getMessenger
FINER: Could not get messenger for tcp://10.49.113.56:9701
java.net.ConnectException: Connection timed out
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at net.jxta.impl.endpoint.tcp.TcpMessenger.(TcpMessenger.java:375)
at net.jxta.impl.endpoint.tcp.TcpTransport.getMessenger(TcpTransport.java:831)
at net.jxta.impl.endpoint.tcp.TcpTransport.getMessenger(TcpTransport.java:800)
at net.jxta.impl.endpoint.EndpointServiceImpl.getLocalTransportMessenger(EndpointServiceImpl.java:1566)
at net.jxta.impl.endpoint.EndpointServiceImpl.access$200(EndpointServiceImpl.java:106)
at net.jxta.impl.endpoint.EndpointServiceImpl$CanonicalMessenger.connectImpl(EndpointServiceImpl.java:380)
at net.jxta.endpoint.ThreadedMessenger.connect(ThreadedMessenger.java:551)
at net.jxta.endpoint.ThreadedMessenger.run(ThreadedMessenger.java:389)
at java.lang.Thread.run(Unknown Source)
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.EndpointServiceImpl getLocalTransportMessenger
FINE: Couldn't create messenger for : tcp://10.49.113.56:9701
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
WARNING: null messenger for dest :jxta://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
FINE: error creating messenger for dest :jxta://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.tcp.TcpTransport getMessenger
FINER: Could not get messenger for tcp://[fe80:0:0:0:0:ffff:ffff:fffe]:9701
java.net.ConnectException: Connection timed out
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at net.jxta.impl.endpoint.tcp.TcpMessenger.(TcpMessenger.java:375)
at net.jxta.impl.endpoint.tcp.TcpTransport.getMessenger(TcpTransport.java:831)
at net.jxta.impl.endpoint.tcp.TcpTransport.getMessenger(TcpTransport.java:800)
at net.jxta.impl.endpoint.EndpointServiceImpl.getLocalTransportMessenger(EndpointServiceImpl.java:1566)
at net.jxta.impl.endpoint.EndpointServiceImpl.access$200(EndpointServiceImpl.java:106)
at net.jxta.impl.endpoint.EndpointServiceImpl$CanonicalMessenger.connectImpl(EndpointServiceImpl.java:380)
at net.jxta.endpoint.ThreadedMessenger.connect(ThreadedMessenger.java:551)
at net.jxta.endpoint.ThreadedMessenger.run(ThreadedMessenger.java:389)
at java.lang.Thread.run(Unknown Source)
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.EndpointServiceImpl getLocalTransportMessenger
FINE: Couldn't create messenger for : tcp://[fe80:0:0:0:0:ffff:ffff:fffe]:9701
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
WARNING: null messenger for dest :jxta://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
FINE: error creating messenger for dest :jxta://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.tcp.TcpTransport getMessenger
FINER: Could not get messenger for tcp://[fe80:0:0:0:ad66:a7e0:3be7:eb10]:9701
java.net.ConnectException: Connection timed out
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at net.jxta.impl.endpoint.tcp.TcpMessenger.(TcpMessenger.java:375)
at net.jxta.impl.endpoint.tcp.TcpTransport.getMessenger(TcpTransport.java:831)
at net.jxta.impl.endpoint.tcp.TcpTransport.getMessenger(TcpTransport.java:800)
at net.jxta.impl.endpoint.EndpointServiceImpl.getLocalTransportMessenger(EndpointServiceImpl.java:1566)
at net.jxta.impl.endpoint.EndpointServiceImpl.access$200(EndpointServiceImpl.java:106)
at net.jxta.impl.endpoint.EndpointServiceImpl$CanonicalMessenger.connectImpl(EndpointServiceImpl.java:380)
at net.jxta.endpoint.ThreadedMessenger.connect(ThreadedMessenger.java:551)
at net.jxta.endpoint.ThreadedMessenger.run(ThreadedMessenger.java:389)
at java.lang.Thread.run(Unknown Source)
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.tcp.TcpTransport getMessenger
FINER: Could not get messenger for tcp://[fe80:0:0:0:ccf3:2a9:375c:d49a]:9701
java.net.ConnectException: Connection timed out
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at net.jxta.impl.endpoint.tcp.TcpMessenger.(TcpMessenger.java:375)
at net.jxta.impl.endpoint.tcp.TcpTransport.getMessenger(TcpTransport.java:831)
at net.jxta.impl.endpoint.tcp.TcpTransport.getMessenger(TcpTransport.java:800)
at net.jxta.impl.endpoint.EndpointServiceImpl.getLocalTransportMessenger(EndpointServiceImpl.java:1566)
at net.jxta.impl.endpoint.EndpointServiceImpl.access$200(EndpointServiceImpl.java:106)
at net.jxta.impl.endpoint.EndpointServiceImpl$CanonicalMessenger.connectImpl(EndpointServiceImpl.java:380)
at net.jxta.endpoint.ThreadedMessenger.connect(ThreadedMessenger.java:551)
at net.jxta.endpoint.ThreadedMessenger.run(ThreadedMessenger.java:389)
at java.lang.Thread.run(Unknown Source)
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.EndpointServiceImpl getLocalTransportMessenger
FINE: Couldn't create messenger for : tcp://[fe80:0:0:0:ad66:a7e0:3be7:eb10]:9701
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
WARNING: null messenger for dest :jxta://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
FINE: error creating messenger for dest :jxta://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.EndpointServiceImpl getLocalTransportMessenger
FINE: Couldn't create messenger for : tcp://[fe80:0:0:0:ccf3:2a9:375c:d49a]:9701
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
WARNING: null messenger for dest :jxta://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603
18-Jun-2008 19:11:34 net.jxta.impl.endpoint.router.EndpointRouter$EndpointGetMessengerAsyncListener messengerReady
FINE: error creating messenger for dest :jxta://uuid-8177A345E00946DAA1309C2F220068ADB26B7E117F07472BBFC5B8FBEE69B2C603

I must have missed something obvious - if anyone could offer a suggestion on how to move forward, I would be very grateful.

Cheers

Nick

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
aimran50
Offline
Joined: 2006-01-26
Points: 0

I have the same setup and am encountering the exact problem.

Did you or anyone else find a solution to this?

In the messages, it seems JXTA edge peers are trying to connect to the internal IP addresses of each other using both tcp and http and they get timed out.

Should not they be going through the relay? I have set the seeds to the RDV and RLY using the config.setRelaySeedingURIs(rlys); config.setRendezvousSeedingURIs(rdvs); mechanism.

My guess is somehow JXTA edge peers are not going through the relay. Is there a way to check if a edge peer is connected to a relay or force it to connect to a relay?

Any pointers will be appreciated...

kapekost
Offline
Joined: 2010-10-20
Points: 0

google posts this forum in top when looking for this error, anyone found the proper configuration ?

adamman71
Offline
Joined: 2007-01-31
Points: 0

Someone in the community is working on restoring public supers for the community. We are looking at providing code examples to access those peers too. Stay tuned. Keep an eye on the dev and user mailing list.

Jérôme