Depends on your networking setup.. Is your client, your eggdrop, or both behind the router?
If your eggdrop is behind the firewall and listening on port 8888, you would have to forward incoming connections on port 8888 to the system hosting your eggdrop. This will make telnetting to your bot possible, aswell as /ctcp chat.
If your irc client is behind the firewall, you would have to forward proper ports to your workstation. This will make /dcc chat possible. Which ports need to be forwarded here depends on how your client is setup, as it is your client which is responsible for opening a temporary listening port.
A quick walk through of the handshake might help explain things:
- User types /dcc chat bot
- Client opens a random listening port. (opened port was 1234)
- Client creates a CTCP-DCC message stating "DCC CHAT chat <longip> 1234" and sends it over irc to eggdrop
- Eggdrop recieves request and decides to accept it.
- Eggdrop tries to connect to the ip and port supplied.
- Dcc connection established, eggdrop asks for password
In this case, <longip> would have to be whatever address your irc client would be reachable at (such as 85.123.123.123, not 192.168.1.1). If you are using a broadband router at home, you would have to forward the port (1234) to the machine behind the router where your client resides.
Some clients, including clients such as mirc, do allow you to specify in which range it will open random ports for dcc, etc. With these clients, you'll have to forward the whole port-range in order for dcc to work reliably.