Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
12-30-2016, 09:42 AM
|
#1
|
LQ Newbie
Registered: Dec 2016
Posts: 2
Rep:
|
Change netstat local address
This must be very simple but I can't find an answer
I need to change the results of 'netstat -ta' local address to a network ip e.g.
$netstat -ta
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
..
tcp 0 0 localhost:6543 *:* LISTEN
..
*to*
$ netstat -ta
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
..
tcp 0 0 192.168.1.214:6543 *:* LISTEN
..
This needs to be done so that port 6543 is not blocked to outside traffic.
Any suggestions? Thanks in advance.
|
|
|
12-30-2016, 10:01 AM
|
#2
|
Senior Member
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,513
|
And you'll find....
Code:
--numeric , -n
Show numerical addresses instead of trying to determine symbolic host, port or user
names.
--numeric-hosts
shows numerical host addresses but does not affect the resolution of port or user
names.
--numeric-ports
shows numerical port numbers but does not affect the resolution of host or user names.
--numeric-users
shows numerical user IDs but does not affect the resolution of host or port names.
|
|
|
12-30-2016, 10:22 AM
|
#3
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
I suspect the OP wants to change where it is LISTENing not just see it in numeric format.
For that he'd need to run with the "-p" flag to identify the PID then look at that process to see how it gets configured to change where it LISTENs. Probably would also have to open the port in the firewall (iptables, firewalld or other) to be able to connect from other systems once he has it LISTENing on the correct interface.
I'd written more detail but LQ logged me out rather than posting it because of some odd timeout happening since yesterday.
|
|
|
12-30-2016, 12:01 PM
|
#4
|
LQ Newbie
Registered: Dec 2016
Posts: 2
Original Poster
Rep:
|
The -p option enabled me to find out the application (i.e. mythtv) so now all I have to do is find out where it is being set! Thanks.
However if this proves difficult to discover, is there a hack which can override the initial port allocation from 'localhost' to the desired ip address?
|
|
|
12-30-2016, 12:15 PM
|
#5
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
I don't do MythTV myself but many do. If you do a search for "MythTV 6543" you'll find that is a default port apparently.
This post talks about a config file for MythTV so may offer some guidance:
https://ubuntuforums.org/showthread.php?t=2337481
|
|
|
All times are GMT -5. The time now is 09:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|