Results 1 to 6 of 6

Thread: Problem in server side code

  1. #1
    Join Date
    Dec 2009
    Posts
    178

    Problem in server side code

    Hello,
    I created a communication module Client / Server for the exchange of messages. The client uses the following method to connect to server:
    Code:
    InetAddress ad = InetAddress.getByName("localhost");
    Socket server = new Socket(ad,80);
    The local connection is successful, the problem occurs when I want to connect to a server installed on a remote machine that is with a friend. My server side program in not working. Therefore, what method should I use to log on his machine, which port should I use to have no problems with the firewall or antivirus? Thank you for your help.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Problem in server side code

    Hi,
    While the port you chose the one you want and I think the virus will ask whether to pass or not. After you have set the freebox it refers to information coming to the port. And then you connects its public IP address and freebox sends the information to the computer of your friend or something like that.

  3. #3
    Join Date
    Dec 2009
    Posts
    178

    Re: Problem in server side code

    Hello,
    The messaging software such as yahoo messenger or msn messenger can communicate without the firewall or antivirus is blocking the application, and without the need to configure the router for free or anything. Have you any idea how they could do? If you any ides about this then please do post back. It will help me a lot.

  4. #4
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Problem in server side code

    Hello,
    MSN and Yahoo messenger does not ask permission (unless you configure it so) because the firewall is a connection outgoing that connects to a server of MSN (Yahoo, respectively) and which therefore poses no risk to your computer. You, you want the computer to your buddy plays the role of server, or in most cases the firewall blocks access and wondering what to do with the user. This problem does this pose any locally (localhost) ... I know not many people that addresses itself.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Problem in server side code

    Hello,
    The router is the same thing for MSN you do not connect to port your house but on the MSN server, the you must connect you with your boyfriend, how freebox she knows how transmit your computer application if you do not set well? That I am not an expert network. I do not have an code with me, that is I can not help you with the code part, but this should be the logic.
    Last edited by Reegan; 25-01-2010 at 12:51 PM.

  6. #6
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Problem in server side code

    Hi,
    I tried some time ago to almost the same thing. But I had problems configuring free. The IP gives you the customer to login is that your free. (Fixed IP). Then as stated above you must configure the free (server side). If for example you put on port 238 and that your server receives on port 520, it should tell you the free open port 238 and you do switch to the 520.

Similar Threads

  1. Problem in java server code
    By Remedy in forum Software Development
    Replies: 5
    Last Post: 29-01-2010, 01:40 PM
  2. Replies: 5
    Last Post: 28-11-2009, 05:18 PM
  3. PHP server side programming
    By MAHESA in forum Software Development
    Replies: 5
    Last Post: 04-11-2009, 11:29 PM
  4. Server 2008 Activation problem - Error code 0x80072558
    By Raj in forum Windows Server Help
    Replies: 5
    Last Post: 23-09-2009, 02:25 AM
  5. Difference between Server-side and Client-side code?
    By Booth in forum Software Development
    Replies: 2
    Last Post: 08-01-2009, 03:21 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,517,981.07236 seconds with 17 queries