Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How I can run TCP client and server on diffrent machine. (client on one machene and server on second machine)?
I have written program in which ..I have mention ip address as localhost and hard coded port number...so it is working fine on same machine.
Posted

1 solution

Well ,the port number must be known by the client, hence you can keep it hard-coded.
On the client side specify the right server IP address. That's all.
 
Share this answer
 
Comments
peoria123 3-Dec-12 10:51am    
How i can pass server ip address to client side
in java code(how to pass args to client).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900