This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Cant connect via DCC or Telnet

General support and discussion of Eggdrop bots.
t
toxicpc
Voice
Posts: 16
Joined: Sun Feb 24, 2008 7:47 am

Cant connect via DCC or Telnet

Post by toxicpc »

Hi im running this bot on my PC not a paid host, im just using it for testing but I cant connect via DCC or telnet.

I have forwarded the port in my router: 2654 and set it in the config file.

When i try to connect via /ctcp botnick chat it responds:
DCC chat request from (Botnick)/(127.0.1.1) received. Trying to chat through port (2654)...

and

Acknowledging chat request...
Unable to connect
DCC session closed

I have tried changing the ports etc but it wont work and I have set the right range in mirc, i have read the help us to help you topic but dont understand the bit about NAT.

With telnet i have tried connecting via putty with
127.0.1.1 Port 2654
My External IP Port 2654
192.168.0.2 Port 2654
But all of them dont respond and putty closes.

Thanks for any help

:D
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

If this eggdrop is on your own box then you set the following:
set my-hostname "localhost"
.. and comment out 'set my-ip'.

There's nothing particularly special about it (I DCC to my eggdrop without any dramas) unless a router exists.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
t
toxicpc
Voice
Posts: 16
Joined: Sun Feb 24, 2008 7:47 am

Post by toxicpc »

OK ill try that, I do have a router as well:

Netgear DG834G

Edit: still doesnt work with it set to localhost :S
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Setting either my-ip or my-hostname will restrict your eggdrop to only listen for incoming connections on this speciffic ip. You really should'nt set it unless you really need to.

I have a faint memory that the DG834G is based on iptables, which has an issue with NAT:ing when you connect to a forwarded port from within the lan-side of the router.

If you wish to specify which ip your eggdrop should advertise in dcc chat requests, aswell as file transfers and such, see the "nat-ip" setting.
NML_375
t
toxicpc
Voice
Posts: 16
Joined: Sun Feb 24, 2008 7:47 am

Post by toxicpc »

I set nat-ip to my external ip but i still cant connect on dcc or telnet
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

And you made sure neither my-ip nor my-hostname is set?
NML_375
t
toxicpc
Voice
Posts: 16
Joined: Sun Feb 24, 2008 7:47 am

Post by toxicpc »

Yes neither of them set.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

If telnet to neither localhost nor localnet works, it would seem your eggdrop either failed to open the listening socket, or some firewall (iptable/ipchains/ipfw/etc) rules is blocking.

See any error messages during startup, or any messages saying bot is listening on port something or similar?
NML_375
t
toxicpc
Voice
Posts: 16
Joined: Sun Feb 24, 2008 7:47 am

Post by toxicpc »

no error messages but it says:

Listening at telnet port 2654 (all)
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Would seem it opens the port properly then..
All I can think of then is some iptable/ipchains/ipfw/etc rules blocking the connection.
NML_375
t
toxicpc
Voice
Posts: 16
Joined: Sun Feb 24, 2008 7:47 am

Post by toxicpc »

Hmm how would I fix them?

I have my software firewall disabled in windows (linux is in vmware).
t
toxicpc
Voice
Posts: 16
Joined: Sun Feb 24, 2008 7:47 am

Post by toxicpc »

Anyone?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

I am unfortunately not that familiar with vmware; as for linux, if you're running a recent distro, you'd most likely be using iptables.

As root, run iptables --list filter --verbose --list to list any present firewalling rules within linux.
NML_375
t
toxicpc
Voice
Posts: 16
Joined: Sun Feb 24, 2008 7:47 am

Post by toxicpc »

I still have not figured out how to get dcc or telnet working but I found out i can type commands into the terminal window so I have been.

But .console and other commands such as .adduser do not work it just replys:

What? You need '.help'

Can anyone help?
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

the bot is probably having a hostmask and/or flag issue. Type .whom in the partyline to see who the bot thinks you are, then use .match <mynick> to see your personal information
Post Reply