- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- General
- >
- Re: Cleint-Server Question
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2006 11:01 AM
02-12-2006 11:01 AM
When a client and server applications are installed on the same host,
Q, Do they need to use ports to talk to each other? does it have to use tcp/ip?
Qestion 2. How does a server knows and fulfils client's request on the same host?
Please let me know
Cheers
Raf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2006 01:08 PM
02-12-2006 01:08 PM
SolutionFor communications between application on same host there are few different way to implement the IPC (inter process communication) TCP/IP is one of the commond methods. Others like pipes, FIFOs(named pipes) and for system V there are few more like message queues, Semaphores and Shared Memory.
Do a search on google interprocess communication and you will find a lot of information.
second question,
Usually there is a communication protocol being used by both clients and servers like HTTP, FTP this protocol defines commands, data structures format how to handle errors and which port server should listen on, etc etc. Everything is already defined before client can talk to server and server can process any requests from clients. Just like if you only speack English, you can only talk to someone speaks English as well. In this case, English is the protocol.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2006 01:39 PM
02-12-2006 01:39 PM
Re: Cleint-Server Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2006 02:59 PM
02-12-2006 02:59 PM
Re: Cleint-Server Question
Q1, Do they need to use ports to talk to each other? does it have to use tcp/ip?
Not necessarily TCP/IP, It can be any of IPC methods like, named pipes, fifo, etc.. Also, they can communicate via TCP/IP as well.
2. How does a server knows and fulfils client's request on the same host?
There maynot be any difference between same host and others(sometimes, may be). After all,
It(Server) is designed to serve to the clients.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2006 03:56 PM
02-12-2006 03:56 PM
Re: Cleint-Server Question
Thanks Guys for your quick responses, I'm doing lot of reading on the internet to gain appropriate knowledge, I will be getting back with some more questions once I'm finished with my reading...
Thanks a lot, I will assign points soon...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2006 05:06 PM
02-12-2006 05:06 PM
Re: Cleint-Server Question
Guys,
When client-server is talking to each other on the same host using tcp/ip, then what is the example of using TCP/IP on the same host?? is it when it uses ports to communicate each other or something else???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2006 05:16 PM
02-12-2006 05:16 PM
Re: Cleint-Server Question
Find attached doc on Network Ports.
Thought this could be helpful.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2006 05:17 PM
02-12-2006 05:17 PM
Re: Cleint-Server Question
You asked,
When client-server is talking to each other on the same host using tcp/ip, then what is the example of using TCP/IP on the same host?? is it when it uses ports to communicate each other or something else???
It depends, for example, you are running Apacher server on HP-UX and using Mozilla in the same host, you request a page or doing kernel tuning with kcweb. Thsese stuffs can't be done thro' other IPC mechanisms.
Hope this is clear.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2006 05:17 PM
02-12-2006 05:17 PM
Re: Cleint-Server Question
Not sure about your last question, if you just want to see an exmaple of two programs talking to each other using TCP/IP but they both running on the same host. The quickest example is try this
# telnet localhost
and then try
# netstat -a | grep telnet
and you will see something like following
netstat -a | grep telnet
tcp 0 0 localhost.58746 localhost.telnet ESTABLISHED
tcp 0 0 localhost.telnet localhost.58746 ESTABLISHED
tcp 0 0 *.telnet *.* LISTEN
tcp 0 0 primux.telnet .59217 ESTABLISHED
It tells you that there is a TCP/IP connection been established betweel localhost, port 58746 and localhost 23(telnet)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-12-2006 05:22 PM
02-12-2006 05:22 PM
Re: Cleint-Server Question
Here is a good link describes about a typical C&S app.
http://penguin.dcs.bbk.ac.uk/academic/networks/application-layer/client-server/index.php
-Arun
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP