Jump to content

Java Socket

- - - - -

  • Please log in to reply
1 reply to this topic

#1
luckytree2011

luckytree2011

    Newbie

  • Members
  • Pip
  • 1 posts
I use Java ServerSocket and Socket to implement the Server and Client. My Server is located in a LAN; My Client is located in other LAN. My Client couldn't connect to the server because the client request message would be dropped inside the router.

There is one solution is to open the port inside router, but this solution is not what I want. Do your guys know how to bypass the router and get the connection?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
If you are dealing with computers on separate LANs, then you will have to have a network configuration that will handle port forwarding, or something similar, to enable this.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users