This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with network connection between 2 computers

 
Mark O' Sullivan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm currently trying to test the network connectivity between 2 computers for the remote client and server. The operating system I'm currently using is Windows XP. I have created the a separate network name for each computer and a shared workgroup name using the Network Setup wizard. I have placed all shared documentation in the "shared Documents" folder of both computers. Unfortunately though, when I run the server, it starts but I have getting no details for the running server under the "netstats" command prompt option.
I also tried to run the network client upon a different computer and I'm wondering what I need to connect to server on different computer, is it just the other computer name or is it the Workgroup name? Any help/advice appreciated.
 
Ehsan Rahman
Ranch Hand
Posts: 59
Chrome Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,

If I understand you correctly, you're trying to set up a Window's connection between the two computers to share files? i.e. using the windows "Share Folders" feature?

If so, then one thing I did today is to navigate to the Properties settings of a network connection, then under the 'Generals' tab install all client, service and protocols available.

Ehsan
 
Carlos Morillo
Ranch Hand
Posts: 221
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,


I am not a Microsoft Windows Expert but AFAIK Java RMI relies only on basic and plain TCP/IP Network Connectivity so you don't need to mess around with Workgroups, etc.

What you need to do and make sure is to have the IP addresses of BOTH systems running Windows in C:\WINDOWS\system32\drivers\etc\hosts.
You can edit this text file with Notepad.

You can open a Command Prompt to find out the IP address of the system by using the command ipconfig /all and then testing basic TCP/IP Connectivity with ping using as the argument the IP address of the other system.

Keep in mind if any of the systems is using DHCP the IP addresses they are using might change the next time they are rebooted.


Hope this helps,


Carlos.
 
Roel De Nijs
Sheriff
Posts: 10228
129
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,

If you have a router it should be straightforward: when I tested my application on 2 computers (1 desktop and 1 laptop), I plugged a network cable in the router, 1 for each computer (of course). Then I started my server application on the laptop (database file was on the laptop itself). Finally I started the client application in networked mode, just entering the ip address of the laptop and the port number I used to run the server on the laptop. It worked just like that, no network setup wizard or other configurations.

Kind regards,
Roel
 
Mark O' Sullivan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cheers, got this working. The main issue was I was missing a driver for one of network cards on a PC. Was very easy to setup after that, and great to know how simple it is for 2 computers to communicate using TCP/IP. Thanks for everyone's help!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic