[deleted]
I often get this error "Address already in use" when I stop and restart openvpn.
So what I do is that I kill the process running under openvpn or on such port that I use.
Lately I got the same error and it was very persistent. So I asked the assistance of the technical group where I bought the server. And they found out that an apache server is running on the same port.
What command can I use to detect this error?
maikcat
hi there,
if you issue lsof -i
you see open ports (linux).
what port are you using for openvpn?
port 1194 is issued by IANA and it should not be used by anything else...
cheers,
Michael.
[deleted]
I am using port 80 right now.
If I detect that there is another service running on port 80 how can I change that other service port ?
maikcat
hi there,
you must edit the others service configuration file..
michael.
[deleted]
May I ask how to edit those other service configuration files and where can I find them.
maikcat
hi there,
its getting a little off topic...but
>May I ask how to edit those other service configuration files and where can I find them.
there is no way to accuretly answer this because:
each service has its own config file,and depending the OS you use,
it has it in a different folder...
keep in mind that most services use well known port,so dont use standard port unless
you cant do otherwise..
lsof and netstat are your friends,learn to use them. 🙂
Michael.
G_known
Is this applicable to LXC as well because I'm having the same error after changing port then restart
vze2rdgy
I had exactly same problem. One thing about openvpn is, it searches all *.conf file inside /etc/openvpn folder. So in case you did a backup of the server.conf file to say server_back.conf, two instances of openvpn starts. That was my problem and I removed the backup conf file every thing went back ok.