running socket programming (client/server) on single computer
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
running socket programming (client/server) on single computer
hello everybody ...
i have installed the red hat linux ... for socket programming purpose in c.
unfortunately i have single computer, so please any one tell me how to run client/server programs on single computer.
i have created both the client and server programs.
thanks
You simply run them on that computer; you can always configure the sockets so that they listen on the 'loopback' interface (127.0.0.1) - you can do that by specifying 127.0.0.1 explicitly or by setting the socket to listen on all interfaces (0.0.0.0).
It is common for client/server programs to run on a single machine - like the X server and client, database servers, http servers ... so it's a very normal thing to do.
thanks dudes ... actually i am new to linux and socket programming, so thats y
my problem was solved, infact i have only to give the ip address (loopback) after the client and server programs.
can any body recomend me a good website/tutorial or book about socket programming from absolutely beginning.
i am studying beej guide, take the concept how server and client communicate with each other but didnt understand the code.
See 'Beginning Linux Programing' by Wrox publishers.I think their url is www.wrox.com.The book is not about socket programming,but has a chapter on socket programming with detailed explanation of code.You can buy the book or download the code from their site.search for 'Beginning Linux Programming'.They have a 'Beginning' series of books.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.