Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP peer connections do not establish #23

Open
ProgramCrafter opened this issue Jul 29, 2024 · 3 comments
Open

IP peer connections do not establish #23

ProgramCrafter opened this issue Jul 29, 2024 · 3 comments
Labels
question Further information is requested

Comments

@ProgramCrafter
Copy link

I tried to connect Windows machine with Linux machine. Verbose log from Windows side:

{"level":"trace","address":"34.32.135.56:443","len":69,"community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:10+05:00","message":"Received message from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:10+05:00","message":"Received introduction from signaler"}
{"level":"trace","address":"34.32.135.56:443","community":"mycomm","channelID":"weron/ip/id","time":"2024-07-29T02:25:10+05:00","message":"Created data channel"}
{"level":"trace","address":"34.32.135.56:443","community":"mycomm","channelID":"weron/ip/primary","time":"2024-07-29T02:25:10+05:00","message":"Created data channel"}
{"level":"trace","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","len":755,"time":"2024-07-29T02:25:10+05:00","message":"Sending message to signaler"}
{"level":"trace","address":"34.32.135.56:443","len":"udp4 host 192.168.56.1:65099","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:10+05:00","message":"Created ICE candidate"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","client":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:10+05:00","message":"Sent offer to signaler"}
{"level":"trace","address":"34.32.135.56:443","len":"udp4 host 192.168.0.110:65100","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:10+05:00","message":"Created ICE candidate"}
{"level":"trace","address":"34.32.135.56:443","len":"udp4 host 192.146.0.110:61065","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:10+05:00","message":"Created ICE candidate"}
{"level":"trace","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","len":239,"time":"2024-07-29T02:25:10+05:00","message":"Sending message to signaler"}
{"level":"trace","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","len":239,"time":"2024-07-29T02:25:10+05:00","message":"Sending message to signaler"}
{"level":"trace","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","len":239,"time":"2024-07-29T02:25:10+05:00","message":"Sending message to signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","client":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:10+05:00","message":"Sent ICE candidate to signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","client":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:10+05:00","message":"Sent ICE candidate to signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","client":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:10+05:00","message":"Sent ICE candidate to signaler"}
{"level":"trace","address":"34.32.135.56:443","len":"udp4 srflx 124.159.192.68:61066 related 0.0.0.0:61066","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:10+05:00","message":"Created ICE candidate"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","client":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:10+05:00","message":"Sent ICE candidate to signaler"}
{"level":"trace","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","len":275,"time":"2024-07-29T02:25:10+05:00","message":"Sending message to signaler"}
{"level":"trace","address":"34.32.135.56:443","len":215,"community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:10+05:00","message":"Received message from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:10+05:00","message":"Received candidate from signaler"}
{"level":"trace","address":"34.32.135.56:443","len":728,"community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:10+05:00","message":"Received message from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:10+05:00","message":"Received answer from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","peerID":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:10+05:00","message":"Added answer from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","peerID":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:10+05:00","message":"Added ICE candidate from signaler"}
{"level":"trace","address":"34.32.135.56:443","len":247,"community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:10+05:00","message":"Received message from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:10+05:00","message":"Received candidate from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","peerID":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:10+05:00","message":"Added ICE candidate from signaler"}
{"level":"debug","label":"weron/ip/id","peer":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:11+05:00","message":"Connected to channel"}
{"level":"debug","channelID":"weron/ip/id","peerID":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","candidates":0,"timestamp":1722199863721217400,"time":"2024-07-29T02:25:11+05:00","message":"Sending greeting"}
{"level":"debug","label":"weron/ip/primary","peer":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:11+05:00","message":"Connected to channel"}
{"level":"debug","channelID":"weron/ip/id","peerID":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","id":"[\"192.146.0.110/24\"]","time":"2024-07-29T02:25:11+05:00","message":"Sending claimed"}
{"level":"debug","channelID":"weron/ip/id","peerID":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:11+05:00","message":"Received greeting"}
{"level":"debug","channelID":"weron/ip/id","peerID":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","id":"[\"192.146.0.110/24\"]","time":"2024-07-29T02:25:11+05:00","message":"Sending kick"}
{"level":"trace","address":"34.32.135.56:443","community":"mycomm","id":"d3db2a8d-714d-4160-ab54-936140b4335c","time":"2024-07-29T02:25:14+05:00","message":"Sending ping to signaler"}
{"level":"debug","peerID":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:17+05:00","message":"Disconnected from peer"}
{"level":"debug","error":"Read: unexpected value type: 0, error found in #10 byte of ...|194364233}\n|..., bigger context ...|},\"timestamp\":1722201896194364233}\n|...","channelID":"weron/ip/id","peerID":"08d63c32-3b7e-4af7-baad-7bd5d74b4c6f","time":"2024-07-29T02:25:17+05:00","message":"Could not read from peer, stopping"}

Linux side had similar logs, "Read: unexpected value type: 0" being present there as well.

@ProgramCrafter
Copy link
Author

I've checked and, in fact, even chat does not work:

{"level":"debug","error":"Read: unexpected value type: 0, error found in #10 byte of ...|355365373}\n|..., bigger context ...|},\"timestamp\":1722256636355365373}\n|...","channelID":"weron/chat/id","peerID":"4f859e58-3799-4a21-b3db-8ffbf95093c5","time":"2024-07-29T17:37:41+05:00","message":"Could not read from peer, stopping"}
{"level":"trace","address":"34.32.135.56:443","community":"mycomm","id":"385eb489-f727-4510-8a8e-612b4a3b50fe","time":"2024-07-29T17:37:41+05:00","message":"Sending ping to signaler"}
{"level":"trace","address":"34.32.135.56:443","len":0,"community":"mycomm","id":"385eb489-f727-4510-8a8e-612b4a3b50fe","time":"2024-07-29T17:37:44+05:00","message":"Received message from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"mycomm","id":"385eb489-f727-4510-8a8e-612b4a3b50fe","time":"2024-07-29T17:37:44+05:00","message":"Could not unmarshal message from signaler, continuing"}

@pojntfx pojntfx added the question Further information is requested label Jul 30, 2024
@pojntfx
Copy link
Owner

pojntfx commented Jul 30, 2024

Not sure what's happening here - just tried the latest release binaries with the chat, works fine on my machine. Is there a chance your --password or --key doesn't match between your two hosts?

@ProgramCrafter
Copy link
Author

I've just checked again and the problem persists. I've copied the command so I'm quite sure that key is same, also it was digit-only so Linux and Windows should have interpreted it in the same way. Here is the command in case you can point out any wrong argument (I'm also leaving one side working for a few more hours in case you can connect to it and check if chat works):

weron chat --community pcrafter-test --password estAblisH --key 37749308474362475003991816146167114420866882829397986277319617749931983744639 --channels main --names la -v 7

Logs of first side ("co"):

{"level":"debug","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","client":"059433b8-fac6-4a3a-a34d-ca745da9b42f","time":"2024-07-31T22:13:51+05:00","message":"Sent ICE candidate to signaler"}
{"level":"trace","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","len":275,"time":"2024-07-31T22:13:51+05:00","message":"Sending message to signaler"}
{"level":"trace","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:13:51+05:00","message":"Sending ping to signaler"}
{"level":"trace","address":"34.32.135.56:443","len":215,"community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:13:51+05:00","message":"Received message from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:13:51+05:00","message":"Received candidate from signaler"}
{"level":"trace","address":"34.32.135.56:443","len":728,"community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:13:51+05:00","message":"Received message from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:13:51+05:00","message":"Received answer from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","peerID":"059433b8-fac6-4a3a-a34d-ca745da9b42f","time":"2024-07-31T22:13:51+05:00","message":"Added answer from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","peerID":"059433b8-fac6-4a3a-a34d-ca745da9b42f","time":"2024-07-31T22:13:51+05:00","message":"Added ICE candidate from signaler"}
{"level":"trace","address":"34.32.135.56:443","len":247,"community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:13:51+05:00","message":"Received message from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:13:51+05:00","message":"Received candidate from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","peerID":"059433b8-fac6-4a3a-a34d-ca745da9b42f","time":"2024-07-31T22:13:51+05:00","message":"Added ICE candidate from signaler"}
{"level":"debug","label":"weron/chat/id","peer":"059433b8-fac6-4a3a-a34d-ca745da9b42f","time":"2024-07-31T22:13:52+05:00","message":"Connected to channel"}
{"level":"debug","label":"main","peer":"059433b8-fac6-4a3a-a34d-ca745da9b42f","time":"2024-07-31T22:13:52+05:00","message":"Connected to channel"}
{"level":"debug","channelID":"weron/chat/id","peerID":"059433b8-fac6-4a3a-a34d-ca745da9b42f","candidates":0,"timestamp":1722445960987232000,"time":"2024-07-31T22:13:52+05:00","message":"Sending greeting"}
{"level":"debug","channelID":"weron/chat/id","peerID":"059433b8-fac6-4a3a-a34d-ca745da9b42f","id":"co","time":"2024-07-31T22:13:52+05:00","message":"Sending claimed"}
{"level":"trace","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:13:56+05:00","message":"Sending ping to signaler"}
{"level":"debug","peerID":"059433b8-fac6-4a3a-a34d-ca745da9b42f","time":"2024-07-31T22:13:58+05:00","message":"Disconnected from peer"}
{"level":"debug","error":"EOF","channelID":"weron/chat/id","peerID":"059433b8-fac6-4a3a-a34d-ca745da9b42f","time":"2024-07-31T22:13:58+05:00","message":"Could not read from peer, stopping"}
{"level":"trace","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:14:01+05:00","message":"Sending ping to signaler"}
{"level":"trace","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:14:06+05:00","message":"Sending ping to signaler"}
{"level":"trace","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:14:11+05:00","message":"Sending ping to signaler"}
{"level":"trace","address":"34.32.135.56:443","len":0,"community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:14:12+05:00","message":"Received message from signaler"}
{"level":"debug","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:14:12+05:00","message":"Could not unmarshal message from signaler, continuing"}
{"level":"trace","address":"34.32.135.56:443","community":"pcrafter-test","id":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:14:16+05:00","message":"Sending ping to signaler"}

Logs of later-connecting side ("la"):

{"level":"debug","label":"main","peer":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:13:37+05:00","message":"Connected to channel"}
{"level":"debug","label":"weron/chat/id","peer":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:13:37+05:00","message":"Connected to channel"}
{"level":"debug","channelID":"weron/chat/id","peerID":"ce0f6927-8f36-4253-8faf-ccb8a8588217","candidates":1,"timestamp":1722446014780837969,"time":"2024-07-31T22:13:37+05:00","message":"Sending greeting"}
{"level":"debug","channelID":"weron/chat/id","peerID":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:13:37+05:00","message":"Received greeting"}
{"level":"debug","channelID":"weron/chat/id","peerID":"ce0f6927-8f36-4253-8faf-ccb8a8588217","id":"co","time":"2024-07-31T22:13:37+05:00","message":"Received kick"}
{"level":"debug","channelID":"weron/chat/id","peerID":"co","id":"co","time":"2024-07-31T22:13:37+05:00","message":"Connected to peer"}
{"level":"trace","address":"34.32.135.56:443","community":"pcrafter-test","id":"059433b8-fac6-4a3a-a34d-ca745da9b42f","time":"2024-07-31T22:13:40+05:00","message":"Sending ping to signaler"}
{"level":"debug","id":"la","time":"2024-07-31T22:13:40+05:00","message":"Sending claimed"}
{"level":"debug","id":"la","time":"2024-07-31T22:13:40+05:00","message":"Connected to signaler"}

la!
{"level":"debug","channelID":"main","peerID":"co","time":"2024-07-31T22:13:40+05:00","message":"Connected to peer"}
+co@main
la> {"level":"debug","peerID":"ce0f6927-8f36-4253-8faf-ccb8a8588217","time":"2024-07-31T22:13:43+05:00","message":"Disconnected from peer"}
{"level":"debug","error":"Read: unexpected value type: 0, error found in #10 byte of ...|\"id\":\"co\"}\n|..., bigger context ...|{\"type\":\"claimed\",\"id\":\"co\"}\n|...","channelID":"weron/chat/id","peerID":"co","time":"2024-07-31T22:13:43+05:00","message":"Could not read from peer, stopping"}
{"level":"debug","channelID":"main","peerID":"co","time":"2024-07-31T22:13:43+05:00","message":"Disconnected from peer"}
-co@main
la> {"level":"debug","channelID":"weron/chat/id","peerID":"co","time":"2024-07-31T22:13:43+05:00","message":"Disconnected from peer"}
{"level":"trace","address":"34.32.135.56:443","community":"pcrafter-test","id":"059433b8-fac6-4a3a-a34d-ca745da9b42f","time":"2024-07-31T22:13:45+05:00","message":"Sending ping to signaler"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants