Easy question about ports

This is a discussion on Easy question about ports within the Tech Board forums, part of the Community Boards category; Sorry for this foolish question. Port number (/etc/services) depend on architecture or OS? I only use Linux on pentium machine. ...

  1. #1
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187

    Easy question about ports

    Sorry for this foolish question.

    Port number (/etc/services) depend on architecture or OS?

    I only use Linux on pentium machine.
    I never tried `port' on other OSes or other machines.
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    385
    You're talking about two completely different ports

    Ports in /etc/services are talking about TCP/IP (UDP) ports where an IP address and a port combined make a socket.

    When talking about porting an application between different OSes or architectures it has nothing to do with what's in /etc/services on Linux.
    Wandering aimlessly through C.....

    http://dbrink.phpwebhosting.com

  3. #3
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187
    I may not understand you correctly.
    I meant...
    inetd, a super server, is listening for port access.
    For example ftp must access via port number 21.
    If I switch to others such as SunOS on SPARC machine.
    I question whether ftp still access via port number 21 or not.
    If not, it depends on architectural or OS?

    Thanks,
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  4. #4
    Registered User
    Join Date
    Oct 2002
    Posts
    385
    Port numbers are part of TCP/IP and has nothing to do with the architecture. Every OS has an implementation of TCP/IP based on the TCP/IP standard so they all have the same port numbers unless the admin manually changes which port a certain service listens on.
    Wandering aimlessly through C.....

    http://dbrink.phpwebhosting.com

  5. #5
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187
    Thanks, that's what I want to know.
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. This is hopefully an extremely easy question...
    By rachaelvictoria in forum C Programming
    Replies: 2
    Last Post: 11-07-2005, 01:36 AM
  2. 4 easy question
    By Zeratulsdomain in forum C++ Programming
    Replies: 2
    Last Post: 10-15-2005, 11:43 PM
  3. easy question about machine code
    By Jaguar in forum Tech Board
    Replies: 3
    Last Post: 10-07-2003, 10:11 AM
  4. Newbie Question (easy i think)
    By pyrotherm in forum C++ Programming
    Replies: 7
    Last Post: 10-01-2003, 10:26 AM
  5. Easy Question
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 08-12-2002, 01:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21