Java Networks

Hello

I have written two Classes Server.java, Client.java. Server opensServerSocket & Client opens Socket. Now Server & Client are getting connected in a LAN environment, that's ok.

Now question is that "Client from any other network from any part of the world can be connected to Server".

If yes then will there be any problem with direct or proxy connection to Internet.

If No then what will be the best java solution or any other solution.

Any kind of help is really appreciated.

[537 byte] By [Khan219a] at [2007-10-3 5:09:51]
# 1

> Now question is that "Client from any other network

> from any part of the world can be connected to

> Server".

Yes provided that your server is running on ahost that has a public IP address or you have a port mapped to your server in the firewall/router.

> If yes then will there be any problem with direct or

> proxy connection to Internet.

If the connection is direct you have nothing to worry about. But if the direct connections are not allowed in the network that the client is running in the client will need to use some proxy. You should provide a proxy of your own or you should write your program to work with existing standerd proxy servers.

LRMKa at 2007-7-14 23:16:07 > top of Java-index,Core,Core APIs...