Find the answer to your Linux question:
Results 1 to 7 of 7
I have port 4011 open and listening on interface 127.0.0.1 and I need it listening on 192.168.1.2, how do I do this? Thank you for any help...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    5

    Question change the interface a port is listening on.


    I have port 4011 open and listening on interface 127.0.0.1 and I need it listening on 192.168.1.2, how do I do this?

    Thank you for any help

  2. #2
    Just Joined!
    Join Date
    Mar 2009
    Posts
    5
    netstat -tna

    tcp 0 0 127.0.0.1:4011 0.0.0.0:* LISTEN
    what I would like for it to say is 192.168.1.2:4011

    Thank you

  3. #3
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    You need to change the configuration of the program that is listening on this port. You haven't provided any details of this program, so I can't help you with it yet.

  4. #4
    Just Joined!
    Join Date
    Mar 2009
    Posts
    5
    Quote Originally Posted by Ziplock View Post
    You need to change the configuration of the program that is listening on this port. You haven't provided any details of this program, so I can't help you with it yet.
    The program using this port is Postfix. The port is set in the master.cf file with the configuration line

    Code:
    4011    inet    n       -       n       -       -       smtpd
    netstat -tnap shows the following output

    Code:
    tcp        0      0 127.0.0.1:4011              0.0.0.0:*                   LISTEN      3773/master         
        
    tcp        0      0 127.0.0.1:465               0.0.0.0:*                   LISTEN      3773/master
    I'm a little confused with the other line of netstat showing master using another port as I don't see that designated anywhere in the master.cf file (if that in fact is where that is coming from).

  5. #5
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    Hi there,

    There is a page here which will probably help:

    Postfix Basic Configuration

    Specifically under: 'My own network addresses'

  6. #6
    Just Joined!
    Join Date
    Mar 2009
    Posts
    5
    Quote Originally Posted by Ziplock View Post
    Hi there,

    There is a page here which will probably help:

    Postfix Basic Configuration

    Specifically under: 'My own network addresses'
    Ok, that was definitley helpful. Thank you. My problem is a little more defined now and will repost on a new topic.

    k

  7. #7
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    No worries, good luck!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •