LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-06-2007, 10:45 PM   #1
praveenchebolu
LQ Newbie
 
Registered: Mar 2006
Posts: 6

Rep: Reputation: 0
IPV6 socket bind error(99)


Hi
I am using RedHat linux-2.4.21-40.EL with IPV6 enabled.
I have written a sample Client and Server program using the IPv6 compatible socket calls.
When I give the IPV6 address, i am getting the below error:

Socket bind Error (99): cannot assign requested address.

Can anyone help on this problem? why iam getting that error.

Waiting for the reply....
 
Old 05-07-2007, 05:11 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
First: you might get more help if you posted a short but complete listing of code that contains the error.

Second: Are you running the program as root?
 
Old 05-09-2007, 03:47 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Which port number are you using? Or you can test it yourself like osor suggest. Run the program as root. It it binds correctly, your normal user cannot bind to that port.
 
Old 05-17-2007, 04:50 AM   #4
praveenchebolu
LQ Newbie
 
Registered: Mar 2006
Posts: 6

Original Poster
Rep: Reputation: 0
error:99

I am running as a ROOT.
 
Old 05-17-2007, 04:19 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Are you sure you're assigning a correct IPv6 address? Please show the code, if possible.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not bind listening socket chabotrobert Linux - Networking 7 02-25-2024 04:19 PM
IPV6 BIND 9.2 PTR Record toraghun Linux - Networking 3 08-18-2005 03:42 AM
bind() fail while binding to an IPv6 Address ydb82 Programming 3 07-05-2005 05:21 PM
cannot bind to socket: address already in use exfacior Linux - Wireless Networking 0 09-27-2004 12:34 PM
raw ipv6 socket example Steave Programming 0 06-27-2003 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration