07-28-2009
Hi,
We can use the same port number for two applications based on protocols.(i.e one application is based on TCP and the other application based on UDP).
But i don't know about interfaces, can anyone one help........
1) Can we use same port number for different applications on a single interface.
2) Can we use same port number for different applications on different interfaces(interfaces have separate ip address).
Consider that same port number can be used on different applications, then won,t it be a problem in receiving the packets.
Applications using UDP protocol.
--------------------------------
1) Application 1 is binded to the port number 1500 and ip address of an interface.(Transfer the packet through the selected interface).
2) Application 2 is binded to the port number 1500 and ip address is 0.0.0.0
Now, inorder to transfer the packet of Application 2 an interface has to be selected based on destination's ip address.
If application 2 want's to transfer packets with different destination ip adresses, then different interfaces will be selected for different interfaces.(so application 2 may transfer packet through any one of the available interface and where as application 1 will transfer through the specific interface).
--->After receiving the packet, how should i select the socket of application 1 and application 2.
Problem is both sockets are binded to same port number and interface on which application 2 is transferring the packets are not fixed.
Last edited by vijaypdp2006; 07-28-2009 at 11:58 AM..
9 More Discussions You Might Find Interesting
1. Cybersecurity
Hello every one.
I work in a LAN with many application server.
Each one use a different port.
What command permit to obtain the number of these port.
thanks (2 Replies)
Discussion started by: hoang
2 Replies
2. UNIX for Dummies Questions & Answers
I wish to know whether a particular port is free or not in my SUN solaris SPARC machine . I wish to use that particular port for one server software.
How do I know that. (2 Replies)
Discussion started by: Hitesh Shah
2 Replies
3. UNIX for Dummies Questions & Answers
Hi expert,
I wanted to know in which port my apache is running in solaris box
thanks
Shaan (1 Reply)
Discussion started by: shaan_dmp
1 Replies
4. UNIX for Dummies Questions & Answers
hi all
i want to connect a system,
how can i know the port number of a system. (2 Replies)
Discussion started by: tukuna82
2 Replies
5. Solaris
Hi all ,
I want know the port no on which a particular application is running.
How to find that?
Thanks in anticipation (11 Replies)
Discussion started by: kumarmani
11 Replies
6. IP Networking
Hi,
We can use the same port number for two applications based on protocols.(i.e one application is based on TCP and the other application based on UDP).
But i don't know about interfaces, can anyone one help........
1) Can we use same port number for different... (0 Replies)
Discussion started by: vijaypdp2006
0 Replies
7. Programming
hi,
I am writing one packet receiving program using libpcap library.
Now, I want to check port is already using or not.
how to check in receiver program..
If normal program, bind return value we can able to check the port using or not.
but, in pcap program how can i check?
thank... (1 Reply)
Discussion started by: ram.sj
1 Replies
8. UNIX for Advanced & Expert Users
In which file inside the application code we can find the list of port numbers that the application is entitled to listen? (4 Replies)
Discussion started by: p_gautham12
4 Replies
9. Solaris
please find the below o/p for your reference
bash-3.00# fcinfo hba-port
HBA Port WWN: 21000024ff295a34
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: 375-3356-02
Firmware Version: 05.03.02
FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies
LEARN ABOUT CENTOS
axports
AXPORTS(5) Linux Programmer's Manual AXPORTS(5)
NAME
/etc/ax25/axports - AX.25 port configuration file.
DESCRIPTION
axports is an ASCII file that contains information about each of the physical AX.25 ports that are to be used. When dealing with an AX.25
utility such as call, it takes an argument that is the port name. This port name is a reference to the line within axports, which has that
name as its first argument. The information on each line contains enough information to bind the command to a particular physical AX.25
interface, this binding is done by matching the callsign on the line in axports with the callsign of the port set by kissattach.
The lines within axports must either be a comment line, which starts with a # in the first column, or a port description in the following
format, each field being delimited by white space:
name callsign speed paclen window description
The field descriptions are:
name is the unique identifier of the port. This is the name given as the port argument of many of the AX.25 support pro-
grams. This is not in any way related to actual device identities, just unique
callsign the callsign of the physical interface to bind to.
speed this is the speed of interface, a value of zero means that no speed will be set by kissattach(8).
paclen is the default maximum packet size for this interface.
window the default window size for this interface.
description a free format description of this interface, this field extends to the end of the line. This field may contain spaces.
FILES
/etc/ax25/axports
SEE ALSO
call(1), ax25(4), axparms(8), kissattach(8).
Linux 2008-Feb-04 AXPORTS(5)