Listening to a port behind firewall

  • Thread starter Thread starter phoenix
  • Start date Start date
P

phoenix

You must enable portforwarding for that specific port on your router. If you
don't packets will most likely arrive at the router and just be dropped.

Yves
 
Hi, I'm programming an IRC bot. I'm trying to establish a dcc
connection with another IRC client. I give the ipaddress and port
number to the client in the request. I listen to that port with
TcpListener on IPAddress.Any. The listener never receives a
connection.

My situation is the bot computer is behind a router. Is there
something special that must be done to bind to the router's port?

Thanks,

Sean.
 
How is it then that MIRC on that same computer can initiate and accept
DCC requests? I'm just trying to do the same thing as MIRC with
regards to DCC CHAT.
 
phoenix said:
"Sean" <[email protected]> schreef in bericht

If it's a router, and there is no network address translation occuring,
then the packet should just end up in the right spot. You might find it
useful to run a packet sniffer on the Internet side of the router to
diagnose this. Ethereal is very nice (http://www.ethereal.com)
You must enable portforwarding for that specific port on your router. If you
don't packets will most likely arrive at the router and just be dropped.

If you have network address translation happening, or the router is a
firewall, then this is correct. Some of the nicer firewalls will do
connection tracking to make this work transparently.

Cheers,
Mikal
 
Bah, I don't quite get this yet. MIRC can initiate and accept dcc
requests behind the firewall just find.

Thanks for the sniffer link.

I tried it out, but can't seem to put it all together yet.

MIRC sends 2 requests through irc: 1) notice message, 2) privmsg. Both
are pointing to the ip of the cable modem and the same port. Then the
irc initiater sends an accept after accept is clicked, and the MIRC
sends an ack back.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top