Page 1 of 1
cannot assign requested address....can anyone help a newbie?
Posted: Wed Jun 08, 2005 12:38 am
by darkstate
the problem is i can get ircd to run locally 127.0.0.1 fine no errors,but when i try and connect externally nothing connection refused,i've tried it with and without a router connecting externally and asked other people to and nothing,my dns is correctly setup as i asked dynsdns for a check and they said its fine,if i set up the line
listen 192.168.1.100:6667-6669
{
options
{
clientsonly;
};
};
i get this error
[Wed Jun 8 01:12:18 2005] - Error binding stream socket to IP 192.168.1.100 port 6669 - darkstate-irc.mine.nu[]:Cannot assign requested address
if iset it up like this
listen *:6667-6669
{
options
{
clientsonly;
};
};
i can log on locally without any errors fine and dandy!!
where am i going wrong,this cant be the hard a program to get running ,i'm sure this is gonna be a newbie easy error...
please solve this prob for me as i want to get this up and running soon as...i've doing this now for a week...
i've read the docs a thousand times but the above error hasn't got an answer...typical

good luck ...cos i aint had any so far
kind regards
paul
Posted: Wed Jun 08, 2005 4:25 am
by w00t
I looked at your error message:
Code: Select all
[Wed Jun 8 01:12:18 2005] - Error binding stream socket to IP 192.168.1.100 port 6669 - darkstate-irc.mine.nu[]:Cannot assign requested address
I then opened the Unreal FAQ: (For reference, the address is
http://www.vulnscan.org/UnrealIRCd/faq/). I looked at the error again and chose a part of it that I thought to be generic - in this case the "Error binding stream socket " was probably a good bet. I opened the "Find on page" window and typed that in. Straight away I got an FAQ item hilighted, entry 26 as a matter of fact. (this process took me a sum total of 5 seconds).
This to me implies one or more of a number of things:
1) You didn't find the FAQ (seems unlikely)
2) You didn't look hard enough (probably it?)
3) You didn't bother looking properly (I hope not :/)
Now, what that error means is exactly as it says - it can't bind to that address (192.168.1.100 port 6669) - looking at the FAQ entry tells us this is generally because it's in use. Go from there and have fun. Just note though that reading and trying things is a lot better than relying on other people to solve your problems, especially when you then get things that require fast responses like DDoS attacks and the like.
Posted: Wed Jun 08, 2005 4:51 am
by aquanight
If it was already in use it would say "Address already in use". This one says "Cannot assign requested address" which usually means you're using an IP that doesn't belong to the machine the ircd is running on.
For the record, most people just bind to *:port and let the OS take care of the IP part :) . This only doesn't work if you're on a shell.
Posted: Wed Jun 08, 2005 9:46 am
by darkstate
If theres one thing i hate about help channels ..its people who talk down to newbies like me
i asked all the relevent questions,and yes i did look into very detailed like,the FAQ and the 1,2,3 thing to me as a newbie is very very ignorant to me,i'm a moderater and i wouldn't even think of treeting my members newbie or pro like that,this disrespect to your members should be stopped as soon as possible,i'm sure you have heard my question a thousand times and thought ...i wish these guys/girls would read the FAQ in more detail,but i did and as i said my question isn't answered in there..
The answer the FAQ gives is
Booting - Error binding stream socket to .. Address already in use
This means another process is listening at this port. Usually it's on of these:
- An ircd process is already running
- You are on a shell box, you then have to bind to a specific IP in your listen block instead of *
If you had read my my answer what my ircd is saying it said
[Wed Jun 8 01:12:18 2005] - Error binding stream socket to IP 192.168.1.100 port 6669 - darkstate-irc.mine.nu[]:Cannot assign requested address
which is completely different and as you said to me
This to me implies one or more of a number of things:
3) You didn't bother looking properly (I hope not :/)
Alls i asked for was to be treated like a newbie and be welcomed to the fold(ircunreal) instead you made me not a happy chappy and very dissapointed in the character and manner this forum as to offer...
please in the future please try and treat people who want help with dignity and like a piece of DIRT youv'e just stepped on..
2 other members have tried to help me without being disrespectful and will be giving there answers a try they were PRES_ROB & AQUANIGHT..
if they can do it so can you,it cost exactly the same to nice to newbies as being a quick to judge person like your self...
NOT A HAPPY MEMBER!!!
Posted: Wed Jun 08, 2005 11:44 am
by w00t
I'm sorry you feel this way, however you will note the FAQ entry does have bits missing from the message here. This typically means that yes indeed you may have something else running. To check if this is the case, try either:
ps -aux | grep ircd
and look for any ircd processes you don't know about or:
netstat -a | grep 6669
and look for anything running on port 6669
There is a reason I typically reply to questions like that in that manner - many of the people who come on here (or indeed the support channel) have not read the documentation or tried to help themselves in any way - despite anything they may say to the contrary. Your message to me indicates some thought on this matter, so I hope you can understand my attitude. It appears in this case I may have been wrong, for which I most sincerely apologise.
Should there be anything further I can do to assist you, please feel free to contact me - either through this board or on IRC (I'm generally on the help channel).
Again, my apologies - and I hope for your understanding in this matter.
Thanks,
w00t
Posted: Wed Jun 08, 2005 11:46 am
by w00t
Just as another note on this, not being able to bind to one port is not a fatal error - hence why connecting on port 6667 is still an option.
Posted: Wed Jun 08, 2005 10:51 pm
by w00t
[from a PM]
Thank you for the reply
That was the 1st thing i did,checking the netstat to see if there was something else running on those ports,i took that approach because being a founder on irc and running a channel for many years,and teaching people how to use and overcome problems with programs like..iroffer,kiri,invision etc if you have something example..mirc running on the same ports,the program' example' iroffer will not work,these programs need there own space(ports).
Anyway there isn't any program running on those ports,let me tell you what iv'e done and tell me if i (newbie) have done something Inherently wrong with my setup of linux
iv'e got suse 9.3,iv'e switched off the firewall as i'm using a linksys router,i'm not using any of the ssl or security offerings that unreal has to offer,i solved all the errors 1 by 1 as they came by reading carefully the faq,i've not setup services as of yet because unreal isn't running,i've installed gcc to compile the program because @ the start of the install it couldn't compile because a conpiller wasn't present,i've d/l most of the patches that i thought were relevent,@ this point this where your help is required....
Is there something i need to install that i haven't done that i definitely need?
whats throwing me is the error it gives,to me it sounds like it just can't see the address..
Anyway if @ all possible have you got a example copy of a config that you know 100% works..without any paswords in there obviously so i can compare or would you care to look @ mine to check for errors?
and yes iv'e seen the config.example it offers but thats just an example not a 100% working model just an example what you can achieve with the program
kind regards
paul
Posted: Wed Jun 08, 2005 11:09 pm
by w00t
I don't know about example confs, but just for kicks, try changing your listen block to just 6667.
If that works all fine and sweet, try adding individual listen blocks for ports 6668 and 6669 - not specifying a range as you have now.
the example you gave seems to have done the job..many thanks
Posted: Mon Jun 20, 2005 11:43 pm
by darkstate
listen *:6667
{
options
{
clientsonly;
};
};
when i put the above code in and saved it then ./unreal rehash
it worked 1st go

so my next task is getting the services running

cheers for all your advice,its appreciated
i've only just come back from my holidays, so sorry for the delay in carrying on this project.
hope this can help other people in there projects as well now its working ...so far

thanks again