Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 11th, 2005, 02:46 AM
Registered User
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default remote server access

class Server {
    public static void main(String[] ar) {

        try {
            System.out.println("waiting for connection....");
            ServerSocket ss = new ServerSocket(2000);
            Socket soc = ss.accept();
            System.out.println("connected with client");
        } catch (Exception e) {System.err.println(e); }

this is my server program which has a static IP (Remote system connected with Internet).

and this is my client program,

class Client {
        public static void main(String[] ar) {
                try {
                        Socket s = new Socket("serverIP", 2000);
                                    System.out.println("successfully connected");
                } catch (Exception e) { System.out.println(e); }

my client program is running in separate LAN which is connected with DSL line.

but i could not connect with the server. (serverIP in client is a remote IP address)

and at the same time if i try the client with dialup i can.

what is the problem pls help me.

the above is my simple program.

only if i solve this, i can move further.

pls guide me.


Old March 16th, 2005, 11:01 AM
Friend of Wrox
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts

do you have a firewall on your dsl line?

does your ISP block some ports?

can you telnet to your remote server over dsl?

Don't Stand on your head - you'll get footprints in your hair. http://www.charlieharvey.org.uk

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Access to SQL Server Express Bob Bedell .NET Web Services 6 December 21st, 2007 10:50 AM
SQL Server Remote Access error sterreyl BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 April 18th, 2007 01:24 PM
SQL Server Access across a remote machine rajen SQL Server 2000 3 July 27th, 2006 02:28 PM
VB Express and SQL server on remote server questio HoosierDaddy61 Visual Basic 2005 Basics 0 February 22nd, 2006 11:27 AM
Web Express and Access on Remote Server? HoosierDaddy61 ASP.NET 2.0 Basics 1 November 26th, 2005 05:58 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.