Re: Socket Won't Connect



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);

Not enough info. Show us how you are actually calling this when if fails. SSCCE please.



.



Relevant Pages

  • Re: Socket Wont Connect
    ... 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. ... that I can't get a peer to peer connection to work. ...
    (comp.lang.java.programmer)
  • Re: Socket Wont Connect
    ... when I test them on 2 computers on my wireless network. ... that I can't get a peer to peer connection to work. ... Given that you haven't told us either the IP address or the port in question, ...
    (comp.lang.java.programmer)