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

Network Connections on 'localhost' #488

Closed
davefilip opened this issue Oct 13, 2024 · 24 comments
Closed

Network Connections on 'localhost' #488

davefilip opened this issue Oct 13, 2024 · 24 comments

Comments

@davefilip
Copy link

Rene,

It appears as though while I can readily open a CSocket (IPPROTO_TCP) connection to another network node (Circle or otherwise), I cannot to the local Circle node doing the Connect().

Also, perhaps not surprisingly, I can use the Dev branch to Ping other nodes, but not the node I'm on (not that it is very useful to ping yourself, but it seems to confirm that ICMP -- which does not use sockets -- also cannot talk to the network node you're running on).

Of course, I'm trying the actual network IP address of the node I'm on, but "traditionally" there is a loopback address of 127.0.0.1, which of course also does not work (didn't think it would, since it is not documented anywhere, but I thought I'd try nonetheless).

Is this intentional, or is there an architectural reason why connecting to the local network address of a Circle node does not work?

Just curious.

Thanks,

Dave.

@rsta2
Copy link
Owner

rsta2 commented Oct 14, 2024 via email

@davefilip
Copy link
Author

davefilip commented Oct 14, 2024 via email

@rsta2
Copy link
Owner

rsta2 commented Oct 14, 2024

What you are describing is definitely a (sophisticated) possible use case for a loop back network interface in Circle. I'm preparing a new release now and will think about, how this can be realized afterwards.

@davefilip
Copy link
Author

davefilip commented Oct 14, 2024 via email

rsta2 added a commit that referenced this issue Oct 15, 2024
IP packets, sent to the own IP address, will be looped back
to the receiver.

Issue #488
@rsta2
Copy link
Owner

rsta2 commented Oct 15, 2024

I have found a quick solution. It's on the develop branch. IP packets, sent to the own IP address, will be looped back to the IP receiver. Tested with test/ping-client and Unitest iperf. There is still no explicit localhost address.

@davefilip
Copy link
Author

davefilip commented Oct 15, 2024 via email

@rsta2
Copy link
Owner

rsta2 commented Oct 18, 2024

Did this work for you?

@davefilip
Copy link
Author

davefilip commented Oct 18, 2024 via email

@rsta2
Copy link
Owner

rsta2 commented Oct 18, 2024 via email

@davefilip
Copy link
Author

davefilip commented Oct 19, 2024 via email

@rsta2
Copy link
Owner

rsta2 commented Oct 20, 2024 via email

@davefilip
Copy link
Author

davefilip commented Oct 20, 2024 via email

@rsta2
Copy link
Owner

rsta2 commented Oct 20, 2024 via email

@davefilip
Copy link
Author

davefilip commented Oct 20, 2024 via email

@rsta2
Copy link
Owner

rsta2 commented Oct 20, 2024 via email

@davefilip
Copy link
Author

davefilip commented Oct 20, 2024 via email

@rsta2
Copy link
Owner

rsta2 commented Oct 21, 2024

We should have a look into the file kernel8-rpi4.lst, in which function the exception occurs. Unfortunately I cannot see the screenshots. How it seems, you cannot send images using Email, you must login into GitHub. I had problems with WiFi on the RPi 4B also with Raspberry Pi OS in the past. Sometimes it was difficult to get a connection.

@davefilip
Copy link
Author

davefilip commented Oct 21, 2024 via email

@rsta2
Copy link
Owner

rsta2 commented Oct 21, 2024 via email

@davefilip
Copy link
Author

davefilip commented Oct 21, 2024 via email

@davefilip
Copy link
Author

davefilip commented Oct 21, 2024 via email

@rsta2
Copy link
Owner

rsta2 commented Oct 21, 2024 via email

@davefilip
Copy link
Author

davefilip commented Oct 21, 2024 via email

@rsta2
Copy link
Owner

rsta2 commented Nov 8, 2024

The originally requested feature in this issue is supported in Circle 48. The herein discussed issue regarding a synchronous exception is discussed in issue #490 now. So this can be closed.

@rsta2 rsta2 closed this as completed Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants