Hi ,
In Java using socket programming is it possible to have a server program on windows that services a client program on linux?
I tried the code in the below given link:
http://williams.comp.n cat.edu/Networks/JavaSocketExamp le.htm
This does not work when the client program is on a Linux machine.
Error:
Error Connection refused
java.net.Connec tException: Connection refused
at java.net.PlainS ocketImpl.socke tConnect(Native Method)
at java.net.PlainS ocketImpl.doCon nect(PlainSocke tImpl.java:333)
at java.net.PlainS ocketImpl.conne ctToAddress(Pla inSocketImpl.ja va:195)
at java.net.PlainS ocketImpl.conne ct(PlainSocketI mpl.java:182)
at java.net.SocksS ocketImpl.conne ct(SocksSocketI mpl.java:366)
at java.net.Socket .connect(Socket .java:516)
at java.net.Socket .connect(Socket .java:466)
at java.net.Socket .<init>(Socket. java:366)
at java.net.Socket .<init>(Socket. java:179)
at Tclient.main(Tc lient.java:31)
Can anyone tell me how to make this server on Windows communicate with the client on Linux?
In Java using socket programming is it possible to have a server program on windows that services a client program on linux?
I tried the code in the below given link:
http://williams.comp.n cat.edu/Networks/JavaSocketExamp le.htm
This does not work when the client program is on a Linux machine.
Error:
Error Connection refused
java.net.Connec tException: Connection refused
at java.net.PlainS ocketImpl.socke tConnect(Native Method)
at java.net.PlainS ocketImpl.doCon nect(PlainSocke tImpl.java:333)
at java.net.PlainS ocketImpl.conne ctToAddress(Pla inSocketImpl.ja va:195)
at java.net.PlainS ocketImpl.conne ct(PlainSocketI mpl.java:182)
at java.net.SocksS ocketImpl.conne ct(SocksSocketI mpl.java:366)
at java.net.Socket .connect(Socket .java:516)
at java.net.Socket .connect(Socket .java:466)
at java.net.Socket .<init>(Socket. java:366)
at java.net.Socket .<init>(Socket. java:179)
at Tclient.main(Tc lient.java:31)
Can anyone tell me how to make this server on Windows communicate with the client on Linux?
Comment