|
Home > Archive > Unix Programming > January 2004 > IPv6 socket working only localy
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
IPv6 socket working only localy
|
|
| Miha Lesjak 2004-01-23, 5:07 pm |
| Hello,
I built a small client/server program to test my IPv6 stuff. Everything is
working as it should if i use it localy (localhost). If I run my server on
a different computer than the client, it doesn't work anymore.
IPv4 is working ok in all cases. There is almost no difference between the
code (only in inet_pton and inet_ntop calls and differend addr structures).
Any clues why this would be happening?
Thanks.
LP,
mihal
| |
| Nils O. =?iso-8859-1?Q?Sel=E5sdal?= 2004-01-23, 5:07 pm |
| In article <8c3716e6.0311130053.7cc3a7f3@posting.google.com>, Miha Lesjak wrote:quote:
> Hello,
>
> I built a small client/server program to test my IPv6 stuff. Everything is
> working as it should if i use it localy (localhost). If I run my server on
> a different computer than the client, it doesn't work anymore.
> IPv4 is working ok in all cases. There is almost no difference between the
> code (only in inet_pton and inet_ntop calls and differend addr structures).
>
> Any clues why this would be happening?
Are there IPv6 routing between these machines. ? And do you account for
scopes ?
| |
| Miha Lesjak 2004-01-23, 5:08 pm |
| > Are there IPv6 routing between these machines. ? And do you account forquote:
> scopes ?
Yes, as ping6 and traceroute6 work fine. Account for scopes? What do you
mean by that? If you mean setting the interface, I tried the following
call before bind():
sin6.sin6_scope_id = if_nametoindex("eth0");
Didn't work though... BTW: I have to set the interface for ping6.
Thanks.
LP,
mihal
|
|
|
|
|