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

Given that you haven't told us either the IP address or the port in question,
then no, I don't know. All I can do is guess.

There are 3 things I can think of which might be getting in the way. There is no
route between the two IP addresses. The user running the code doesn't have
sufficient privilege to open the port requested. There is a firewall blocking
the connection.

--
Nigel Wade
.



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
    ... 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: Kazaa Block !
    ... >> security breach, but worse, it is a blatant abuse of work computers. ... >> If this is a home LAN, and these are your children, ground them first, ... >> block KaZaA from their computers, ... > goes over port 80. ...
    (comp.security.firewalls)
  • Re: Remote Desktop failing acces from the internet
    ... You may want to try NAT one to one on port 3389. ... I'm trying to help a friend of mine with the following problem: Remote Desktop cannot access computers from the Internet. ... The only strange thing I have noticed is that the network admin has enforced some group policies on the computers belonging to the domain; as a result some exceptions on the firewall, the firewall service itself, plus some other domain-controlled services aren't modifiable. ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Need advice with Remote Desktop Connection
    ... If you need to change the port of the RDT on a computer you follow the Microsoft page that I pointed to (it is nothing to do with the Router, and it does entails change in the registry). ... A specific port can be used only by One computer, if you need more computers available to Outside Remote you need to change the ports so that each one has a unique port. ... Desktop Connection from a remote location yet it works just fine between computers on my LAN. ...
    (microsoft.public.windowsxp.network_web)