Re: TcpListener with external/internet IP?



Hello mscdex@xxxxxxxxx,

You have to tell your router to forward any incoming packets on port (whatever) to your internal address. Check your router manual for NAT settings.

-Boo

I have a test application that transfers files from a client to a
server. I've been locally testing this on my local LAN and it has been
working fine. However, when I try to transfer a file over the internet
(with the port opened up in the router, no firewalls), it never
connects. I'm thinking it is due to the TcpListener only binding to my
local LAN ip. I tried binding it to my internet IP manually and by
using gethostbyname(gethostname).addresslist(0) as well as using
ipaddress.any, but the client never connects to my machine. An error
occurs on the client's end saying it wasn't able to connect and timed
out, etc, etc.

Is there something I'm missing? Any help is greatly appreciated.
Thanks in advance



.



Relevant Pages

  • Re: Using Remote Desktop From an SBS Domain
    ... when you tried to RDP while attached directly to a port on your router? ... Internet to initiate an IP conversation with your computer. ... This situation is different than if you ran your own NAT connection sharing ...
    (microsoft.public.windows.server.sbs)
  • Re: Publish Web Server behind SBS 2003 Standard
    ... I ended up plugging another router into the WAN. ... How to configure Internet access in Windows Small BusinessServer2003http://support.microsoft.com/kb/825763/en-us ... network interface on right (By default the interface name should be ... input 80 in Outgoing port box. ...
    (microsoft.public.windows.server.sbs)
  • Re: CEICW failure
    ... The port forward thing I had tried just out of desperation. ... The router is 192.168.1.1 subnet 255.255.255.0 ... > port 80 from the Internet to your Server. ... >> SBS box has the 2 NICs. ...
    (microsoft.public.windows.server.sbs)
  • Re: how do you setup a wireless connection without using DNS in the NIC?
    ... I CURRENTLY HAVE NODES CONNECTED TO A SWITHC - NETOPIA ROUTER CONNECTED TO ... THE SWITCH AND FROM THE WAN PORT ADTRAN T1 ROUTER. ... PUBLIC CHANGE THEIR NIC TO RECOGONIZE THE DNS IP. ... building) and have them access the Internet via their lap top. ...
    (microsoft.public.windows.server.setup)
  • Re: =?iso-8859-1?Q?ports_=F6ffnen?=
    ... solltest du hinter einem DSL Router ... Dann musst du nämlich den betroffenen Port vom Router auf deinen PC ... Internet aus erreichbar wird, ist er auch direkt angreifbar aber das nur so ... Next by Date: ...
    (microsoft.public.de.german.windowsxp.sonstiges)