Re: Socket Won't Connect



On Tue, 29 Apr 2008 19:20:07 -0700, Knute Johnson <nospam@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

Chase Preuninger wrote:
Does anyone have any idea why when I create socket connections like
shown they only really work when I test them on my local machine or
when I test them on 2 computers on my wireless network. Other than
that I can't get a peer to peer connection to work.
Socket s = new Socket(Some InetAddress Object, Some Port);

Do you have a firewall in the way?

Or a NAT router? Or a proxy? Or something that performs two or more of those functions?

As Knute's reply suggests, if you're having trouble connecting in situations other than being on the same local computer or LAN, the most common reason is that your network is not correct configured to allow the connections to go through.

Writing network code involves a lot more than just using the Socket class. If you expect to be successful, you'll need to take some time to learn about how networking itself works, as well as the specific protocols you plan on using.

Pete
.



Relevant Pages

  • Re: Help with long term network problem
    ... Using a CNET network switch connected to a CNet Wireless G router Model ... Having the chart listing all of the computers is a great start. ... /all" shows only an Intel 2200BG WiFi connection - no Ethernet is apparent. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Networking
    ... It is a simple direct cable network with no router. ... printer between these computers and let them access the net ... Also aren't these settings individual to each connection you set ...
    (microsoft.public.windowsxp.network_web)
  • Re: Networking
    ... It is a simple direct cable network with no router. ... printer between these computers and let them access the net ... Also aren't these settings individual to each connection you set ...
    (microsoft.public.windowsxp.network_web)
  • Re: Networking
    ... It is a simple direct cable network with no router. ... printer between these computers and let them access the net ... Also aren't these settings individual to each connection you set ...
    (microsoft.public.windowsxp.network_web)
  • Re: home networking
    ... >>>I am trying to set up my home network with a desktop and laptop. ... >>>computers are running XP SP2 Home Edition. ... >>>can I use the existing wired connection? ...
    (microsoft.public.windowsxp.network_web)