natter icon indicating copy to clipboard operation
natter copied to clipboard

Not working when I use my laptop as Bob.

Open Chetan177 opened this issue 7 months ago • 0 comments

This is not working when:

  • I run Broker onto an EC2
  • Alice on the same EC2 and
  • Bob on my local laptop which is connected to a Wifi.

Logs:

Broker:

2024/07/23 11:28:20 Adding forward from local address :8022 to merry-malamute :1022
2024/07/23 11:28:20 Connecting to broker at 127.0.0.1:10000
2024/07/23 11:28:20 -> [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:28:20 <- [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:28:20 Client merry-malamute-0 with address 127.0.0.1:11558 connected
2024/07/23 11:28:20 Control table:
2024/07/23 11:28:20 - merry-malamute-0 127.0.0.1:11558
2024/07/23 11:28:20 -> [CheckinResponse] Addr:"127.0.0.1:11558" 
2024/07/23 11:28:20 <- [CheckinResponse] Addr:"127.0.0.1:11558" 
2024/07/23 11:28:20 Successfully connected to broker
2024/07/23 11:28:20 Listening on local TCP address :8022
2024/07/23 11:28:20 Requesting connection to target merry-malamute on TCP address :1022
2024/07/23 11:28:20 -> [ForwardRequest] Id:"gjGazvmD" Source:"merry-malamute-0" Target:"merry-malamute" TargetForwardAddr:":1022" 
2024/07/23 11:28:20 <- [ForwardRequest] Id:"gjGazvmD" Source:"merry-malamute-0" Target:"merry-malamute" TargetForwardAddr:":1022" 
2024/07/23 11:28:20 -> [ForwardResponse] Id:"gjGazvmD" 
2024/07/23 11:28:20 <- [ForwardResponse] Id:"gjGazvmD" 
2024/07/23 11:28:20 Failed forward response
2024/07/23 11:28:21 <- [CheckinRequest] Source:"merry-malamute" 
2024/07/23 11:28:21 Client merry-malamute with address 122.161.74.223:24923 connected
2024/07/23 11:28:21 Control table:
2024/07/23 11:28:21 - merry-malamute-0 127.0.0.1:11558
2024/07/23 11:28:21 - merry-malamute 122.161.74.223:24923
2024/07/23 11:28:21 -> [CheckinResponse] Addr:"122.161.74.223:24923" 
2024/07/23 11:28:35 -> [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:28:35 <- [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:28:35 Client merry-malamute-0 with address 127.0.0.1:11558 connected
2024/07/23 11:28:35 Control table:
2024/07/23 11:28:35 - merry-malamute-0 127.0.0.1:11558
2024/07/23 11:28:35 - merry-malamute 122.161.74.223:24923
2024/07/23 11:28:35 -> [CheckinResponse] Addr:"127.0.0.1:11558" 
2024/07/23 11:28:35 <- [CheckinResponse] Addr:"127.0.0.1:11558" 
2024/07/23 11:28:36 <- [CheckinRequest] Source:"merry-malamute" 
2024/07/23 11:28:36 Client merry-malamute with address 122.161.74.223:24923 connected
2024/07/23 11:28:36 Control table:
2024/07/23 11:28:36 - merry-malamute 122.161.74.223:24923
2024/07/23 11:28:36 - merry-malamute-0 127.0.0.1:11558
2024/07/23 11:28:36 -> [CheckinResponse] Addr:"122.161.74.223:24923" 
2024/07/23 11:28:50 -> [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:28:50 <- [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:28:50 Client merry-malamute-0 with address 127.0.0.1:11558 connected
2024/07/23 11:28:50 Control table:
2024/07/23 11:28:50 - merry-malamute-0 127.0.0.1:11558
2024/07/23 11:28:50 - merry-malamute 122.161.74.223:24923
2024/07/23 11:28:50 -> [CheckinResponse] Addr:"127.0.0.1:11558" 
2024/07/23 11:28:50 <- [CheckinResponse] Addr:"127.0.0.1:11558" 
2024/07/23 11:28:51 <- [CheckinRequest] Source:"merry-malamute" 
2024/07/23 11:28:51 Client merry-malamute with address 122.161.74.223:24923 connected
2024/07/23 11:28:51 Control table:
2024/07/23 11:28:51 - merry-malamute-0 127.0.0.1:11558
2024/07/23 11:28:51 - merry-malamute 122.161.74.223:24923
2024/07/23 11:28:51 -> [CheckinResponse] Addr:"122.161.74.223:24923" 
2024/07/23 11:29:05 -> [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:29:05 <- [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:29:05 Client merry-malamute-0 with address 127.0.0.1:11558 connected
2024/07/23 11:29:05 Control table:
2024/07/23 11:29:05 - merry-malamute-0 127.0.0.1:11558
2024/07/23 11:29:05 - merry-malamute 122.161.74.223:24923
2024/07/23 11:29:05 -> [CheckinResponse] Addr:"127.0.0.1:11558" 
2024/07/23 11:29:05 <- [CheckinResponse] Addr:"127.0.0.1:11558" 
2024/07/23 11:29:06 <- [CheckinRequest] Source:"merry-malamute" 
2024/07/23 11:29:06 Client merry-malamute with address 122.161.74.223:24923 connected
2024/07/23 11:29:06 Control table:
2024/07/23 11:29:06 - merry-malamute-0 127.0.0.1:11558
2024/07/23 11:29:06 - merry-malamute 122.161.74.223:24923
2024/07/23 11:29:06 -> [CheckinResponse] Addr:"122.161.74.223:24923" 
2024/07/23 11:29:20 -> [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:29:20 <- [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:29:20 Client merry-malamute-0 with address 127.0.0.1:11558 connected
2024/07/23 11:29:20 Control table:
2024/07/23 11:29:20 - merry-malamute-0 127.0.0.1:11558
2024/07/23 11:29:20 - merry-malamute 122.161.74.223:24923
2024/07/23 11:29:20 -> [CheckinResponse] Addr:"127.0.0.1:11558" 
2024/07/23 11:29:20 <- [CheckinResponse] Addr:"127.0.0.1:11558" 
2024/07/23 11:29:21 <- [CheckinRequest] Source:"merry-malamute" 
2024/07/23 11:29:21 Client merry-malamute with address 122.161.74.223:24923 connected
2024/07/23 11:29:21 Control table:
2024/07/23 11:29:21 - merry-malamute-0 127.0.0.1:11558
2024/07/23 11:29:21 - merry-malamute 122.161.74.223:24923
2024/07/23 11:29:21 -> [CheckinResponse] Addr:"122.161.74.223:24923" 
2024/07/23 11:29:25 Opening stream to peer
2024/07/23 11:29:25 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:26 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:27 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:28 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:29 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:30 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:31 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:32 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:33 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:34 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:35 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:35 -> [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:29:35 <- [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:29:35 Client merry-malamute-0 with address 127.0.0.1:11558 connected
2024/07/23 11:29:35 Control table:
2024/07/23 11:29:35 - merry-malamute-0 127.0.0.1:11558
2024/07/23 11:29:35 - merry-malamute 122.161.74.223:24923
2024/07/23 11:29:35 -> [CheckinResponse] Addr:"127.0.0.1:11558" 
2024/07/23 11:29:35 <- [CheckinResponse] Addr:"127.0.0.1:11558" 
2024/07/23 11:29:36 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:36 <- [CheckinRequest] Source:"merry-malamute" 
2024/07/23 11:29:36 Client merry-malamute with address 122.161.74.223:24923 connected
2024/07/23 11:29:36 Control table:
2024/07/23 11:29:36 - merry-malamute-0 127.0.0.1:11558
2024/07/23 11:29:36 - merry-malamute 122.161.74.223:24923
2024/07/23 11:29:36 -> [CheckinResponse] Addr:"122.161.74.223:24923" 
2024/07/23 11:29:37 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:38 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:39 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:40 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:41 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:42 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:43 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:44 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:45 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:46 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:47 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:48 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:49 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:50 Client connected on TCP socket, opening stream ...
2024/07/23 11:29:50 -> [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:29:50 <- [CheckinRequest] Source:"merry-malamute-0" 
2024/07/23 11:29:50 Client merry-malamute-0 with address 127.0.0.1:11558 connected
2024/07/23 11:29:50 Control table:

Bob:

2024/07/23 16:58:21 -> [CheckinRequest] Source:"merry-malamute" 
2024/07/23 16:58:21 <- [CheckinResponse] Addr:"122.161.74.223:24923" 
2024/07/23 16:58:21 Successfully connected to broker
2024/07/23 16:58:21 Waiting for connections
2024/07/23 16:58:36 -> [CheckinRequest] Source:"merry-malamute" 
2024/07/23 16:58:36 <- [CheckinResponse] Addr:"122.161.74.223:24923" 
2024/07/23 16:58:51 -> [CheckinRequest] Source:"merry-malamute" 
2024/07/23 16:58:51 <- [CheckinResponse] Addr:"122.161.74.223:24923" 
2024/07/23 16:59:06 -> [CheckinRequest] Source:"merry-malamute" 
2024/07/23 16:59:06 <- [CheckinResponse] Addr:"122.161.74.223:24923" 
2024/07/23 16:59:21 -> [CheckinRequest] Source:"merry-malamute" 
2024/07/23 16:59:21 <- [CheckinResponse] Addr:"122.161.74.223:24923" 
2024/07/23 16:59:36 -> [CheckinRequest] Source:"merry-malamute" 
2024/07/23 16:59:36 <- [CheckinResponse] Addr:"122.161.74.223:24923" 
2024/07/23 16:59:51 -> [CheckinRequest] Source:"merry-malamute" 

I tried to send request from my laptop to [EC2-IP]:port

Chetan177 avatar Jul 23 '24 11:07 Chetan177