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 

Cant connect via DCC or Telnet
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
toxicpc
Voice


Joined: 24 Feb 2008
Posts: 16

PostPosted: Sun Feb 24, 2008 7:52 am    Post subject: Cant connect via DCC or Telnet Reply with quote

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

Very Happy
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Feb 24, 2008 10:51 am    Post subject: Reply with quote

If this eggdrop is on your own box then you set the following:
Quote:
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
Back to top
View user's profile Send private message Visit poster's website
toxicpc
Voice


Joined: 24 Feb 2008
Posts: 16

PostPosted: Sun Feb 24, 2008 10:59 am    Post subject: Reply with quote

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

Netgear DG834G

Edit: still doesnt work with it set to localhost :S
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Feb 24, 2008 12:10 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
toxicpc
Voice


Joined: 24 Feb 2008
Posts: 16

PostPosted: Sun Feb 24, 2008 12:50 pm    Post subject: Reply with quote

I set nat-ip to my external ip but i still cant connect on dcc or telnet
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Feb 24, 2008 2:24 pm    Post subject: Reply with quote

And you made sure neither my-ip nor my-hostname is set?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
toxicpc
Voice


Joined: 24 Feb 2008
Posts: 16

PostPosted: Sun Feb 24, 2008 3:31 pm    Post subject: Reply with quote

Yes neither of them set.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Feb 24, 2008 4:00 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
toxicpc
Voice


Joined: 24 Feb 2008
Posts: 16

PostPosted: Sun Feb 24, 2008 4:29 pm    Post subject: Reply with quote

no error messages but it says:

Listening at telnet port 2654 (all)
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Feb 24, 2008 5:04 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
toxicpc
Voice


Joined: 24 Feb 2008
Posts: 16

PostPosted: Sun Feb 24, 2008 5:16 pm    Post subject: Reply with quote

Hmm how would I fix them?

I have my software firewall disabled in windows (linux is in vmware).
Back to top
View user's profile Send private message
toxicpc
Voice


Joined: 24 Feb 2008
Posts: 16

PostPosted: Tue Feb 26, 2008 4:05 am    Post subject: Reply with quote

Anyone?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Feb 26, 2008 11:25 am    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
toxicpc
Voice


Joined: 24 Feb 2008
Posts: 16

PostPosted: Sat Mar 01, 2008 6:10 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
YooHoo
Owner


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

PostPosted: Sun Mar 02, 2008 12:58 am    Post subject: Reply with quote

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
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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