egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What does this mean; " Failed to connect (invalid port)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
EnglishExpress
Halfop


Joined: 14 Aug 2007
Posts: 40

PostPosted: Sun Dec 23, 2007 1:26 pm    Post subject: What does this mean; " Failed to connect (invalid port) Reply with quote

I got that when trying to dcc my friends eggdrop.

I normally can't initiate dcc anyways, but I was just playing around trying to see if I could fix the problem, and well, I never got that message before (the bot sent it.)

I can accept dcc though.
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Sun Dec 23, 2007 4:03 pm    Post subject: Reply with quote

not sure what you mean by 'you can't usually initiate dcc anyways'. That error most likely comes from the listen variable in the conf file, that is, if it is indeed an eggdrop problem, and not a problem on your end (i.e. firewall, router, ect)
Code:
# This opens a telnet port by which you and other bots can interact with the
# Eggdrop by telneting in.
#
# There are more options for the listen command in doc/tcl-commands.doc. Note
# that if you are running more than one bot on the same machine, you will want
# to space the telnet ports at LEAST 5 apart, although 10 is even better.
#
# Valid ports are typically anything between 1025 and 65535 assuming the
# port is not already in use.
#
# If you would like the bot to listen for users and bots in separate ports,
# use the following format:
#
#   listen 3333 bots
#   listen 4444 users
#
# If you wish to use only one port, use this format:
#
#   listen 3333 all
#
# You need to un-comment this line and change the port number in order to open
# the listen port. You should not keep this set to 3333.
#listen 3333 all

_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Sun Dec 23, 2007 11:59 pm    Post subject: Re: What does this mean; " Failed to connect (invalid p Reply with quote

EnglishExpress wrote:
I got that when trying to dcc my friends eggdrop.

I normally can't initiate dcc anyways, but I was just playing around trying to see if I could fix the problem, and well, I never got that message before (the bot sent it.)

I can accept dcc though.

This is usually a result of a setting in your IRC client (I've seen this with mIRC a lot), not the bot.
Check your client's setting for DCC ports.
Back to top
View user's profile Send private message
samhudson
Voice


Joined: 21 Sep 2011
Posts: 1

PostPosted: Wed Sep 21, 2011 4:52 am    Post subject: Reply with quote

sorry for bringing up an old topic, but this is the only thread i can find on the internet about this issue!

im getting the same problem when trying to initiate a DCC chat with my bot.

anyone have any ideas?

Code:
CTCP REQUEST DropDeadBot DCC CHAT chat 16843009 0 4
DropDeadBot NOTICE Failed to connect (invalid port)
Back to top
View user's profile Send private message
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Wed Sep 21, 2011 7:54 am    Post subject: Reply with quote

DCC can be difficult to set up. The DCC ports in your IRC client must match those settings in your router/firewall that pass traffic to your PC.

If you can't get it to work, try /ctcp <botnick> chat

Otherwise you will have to use telnet to get on the bot's partyline (for this you will have to set a port in the bot's .conf file). See one of the posts above which show the line #listen 3333 all. Remove the hash (#) at the start of the line and set a port value (usually something above 7500 to avoid conflict). Restart the bot. Telnet the bot's host/vhost on that port. NOT the host/port you use for SSH to the shell.

You might like to try http://defero.ircspeed.org

I made it, amongst other things, to help users with DCC and CTCP issues. After installation, click connect, create a new connection and select the newly created connection.
_________________
I must have had nothing to do
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Sep 21, 2011 1:05 pm    Post subject: Reply with quote

A few things,
The dcc chat request is improperly formatted, as there is one parameter too many.

The IP translates to 1.1.1.1, which should not be present on the net. Some soho router/firewalls do use the 1.1.1.0/24 network (improperly, I might add. only 10.0.0.0/8 and 192.168.0.0/16 should be used for private networks).

The port is 0, which is not a valid tcp-port for connections, but can be used in the sockets layer when creating a new socket to let the IP-stack freely select a random port for the socket. This is the cause for your eggdrop complaining.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Sep 21, 2011 1:10 pm    Post subject: Reply with quote

Actually, now that I think of it, that looks alot like a "Reverse DCC" request. This extension is not supported by eggdrop. Make sure you disable any such features in your irc client when connecting with your eggdrop.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
ruckypup
Voice


Joined: 04 Sep 2014
Posts: 1
Location: san diego

PostPosted: Thu Sep 04, 2014 2:50 am    Post subject: invalid port when chatting eggdrop from mirc Reply with quote

I was getting this error for the last few days

When I would initiate the chat from mirc it would fail for: invalid port

when I would /ctcp botnick chat it would connect fine

the problem was mirc settings. DCC PASSIVE was ON

/dcc passive off

*fixed*
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber