Can't bind to any ports (Devuan) Announcing the arrival of Valued Associate #679: Cesar...
Determine the generator of an ideal of ring of integers
false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'
Protagonist's race is hidden - should I reveal it?
Has a Nobel Peace laureate ever been accused of war crimes?
Married in secret, can marital status in passport be changed at a later date?
Is Vivien of the Wilds + Wilderness Reclamation a competitive combo?
Who's this lady in the war room?
Can I take recommendation from someone I met at a conference?
Why do C and C++ allow the expression (int) + 4*5?
Does the Pact of the Blade warlock feature allow me to customize the properties of the pact weapon I create?
Assertions In A Mock Callout Test
What is the definining line between a helicopter and a drone a person can ride in?
Why is one lightbulb in a string illuminated?
Coin Game with infinite paradox
Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?
Where is Bhagavad Gita referred to as Hari Gita?
"Destructive force" carried by a B-52?
Is the Mordenkainen's Sword spell underpowered?
Unix AIX passing variable and arguments to expect and spawn
Can this water damage be explained by lack of gutters and grading issues?
How to create a command for the "strange m" symbol in latex?
Marquee sign letters
When speaking, how do you change your mind mid-sentence?
Why does BitLocker not use RSA?
Can't bind to any ports (Devuan)
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)What is blocking my ports?Apache can't bind to address [::]:80, already in useWhat ports do you need, to run an SRCDS server?Do hotels block certain ports?execvp exec format error for shell script on Red Hat Enterprise Linux 6Blocking ports without any firewall?Can't create VPN due to blocked portsAll ports are closed, even though I forwarded them on both my modem and routerHow to bind an external port to an internal port?Port Forwarding does not work. Ports are open but my IP does not connect through any ports to anyone
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I recently experienced problems establishing an SSH tunnel. It turned out that also neither Apache nor Nginx won't bind to any ports (even as root and/or outside the <1024 range).
From here I got a small test program (right below Sample Code; my version with output below), hoping I could track down the error. However, running ./server 6789 and ./client localhost 6789 (in two terminals on the same machine) gives no errors. There is just no connection, so server blocks in accept():
Server:
socket().
bzero().
htons().
bind().
listen().
Client:
socket().
gethostbyname().
bzero().
bcopy().
htons().
ERROR connecting: Connection timed out
The output statements are mine. They are the only thing I've changed, being printed after each successful command.
Apache and Nginx behave similarly, you just can't connect to the server.
However, with SSH there is an error:
$ ssh -4 -vvv -NL 5901:"$server":5901 "$user@$server"
[...]
debug1: Authentication succeeded (publickey).
Authenticated to <server> ([<ip>]:22).
debug1: Local connections to LOCALHOST:5901 forwarded to remote address <server>:5901
debug3: channel_setup_fwd_listener_tcpip: type 2 wildcard 0 addr NULL
debug1: Local forwarding listening on 127.0.0.1 port 5901.
bind: Cannot assign requested address
channel_setup_fwd_listener_tcpip: cannot listen to port: 5901
Could not request local forwarding.
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x10
debug1: Requesting no-more-sessions@openssh.com
(Without -4, the output is slightly different but basically the same.)
Anki behaves similarly:
$ anki
Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.py", line 916, in _bootstrap_inner
File "aqt/mediasrv.py", line 57, in run
File "socketserver.py", line 453, in __init__
File "aqt/mediasrv.py", line 38, in server_bind
File "socketserver.py", line 467, in server_bind
OSError: [Errno 99] Cannot assign requested address
Any idea what's the issue here or how I could track down the error?
With Devuan Jessie it has been working, and also on another PC running Devuan ASCII as well. I already checked if a package is missing that is there on the other installations, but didn't find anything that seemed relevant (I have netbase).
Thanks!
server.cpp:
/* A simple server in the internet domain using TCP
The port number is passed as an argument */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
void error(const char *msg)
{
perror(msg);
exit(1);
}
int main(int argc, char *argv[])
{
puts("Server:");
int sockfd, newsockfd, portno;
socklen_t clilen;
char buffer[256];
struct sockaddr_in serv_addr, cli_addr;
int n;
if (argc < 2) {
fprintf(stderr,"ERROR, no port providedn");
exit(1);
}
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0)
error("ERROR opening socket");
puts("socket().");
bzero((char *) &serv_addr, sizeof(serv_addr));
puts("bzero().");
portno = atoi(argv[1]);
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = INADDR_ANY;
serv_addr.sin_port = htons(portno);
puts("htons().");
if (bind(sockfd, (struct sockaddr *) &serv_addr,
sizeof(serv_addr)) < 0)
error("ERROR on binding");
puts("bind().");
listen(sockfd,5);
puts("listen().");
clilen = sizeof(cli_addr);
newsockfd = accept(sockfd,
(struct sockaddr *) &cli_addr,
&clilen);
if (newsockfd < 0)
error("ERROR on accept");
puts("accept().");
bzero(buffer,256);
n = read(newsockfd,buffer,255);
if (n < 0) error("ERROR reading from socket");
printf("Here is the message: %sn",buffer);
n = write(newsockfd,"I got your message",18);
if (n < 0) error("ERROR writing to socket");
close(newsockfd);
close(sockfd);
return 0;
}
client.cpp:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
void error(const char *msg)
{
perror(msg);
exit(0);
}
int main(int argc, char *argv[])
{
puts("Client:");
int sockfd, portno, n;
struct sockaddr_in serv_addr;
struct hostent *server;
char buffer[256];
if (argc < 3) {
fprintf(stderr,"usage %s hostname portn", argv[0]);
exit(0);
}
portno = atoi(argv[2]);
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0)
error("ERROR opening socket");
puts("socket().");
server = gethostbyname(argv[1]);
if (server == NULL) {
fprintf(stderr,"ERROR, no such hostn");
exit(0);
}
puts("gethostbyname().");
bzero((char *) &serv_addr, sizeof(serv_addr));
puts("bzero().");
serv_addr.sin_family = AF_INET;
bcopy((char *)server->h_addr,
(char *)&serv_addr.sin_addr.s_addr,
server->h_length);
puts("bcopy().");
serv_addr.sin_port = htons(portno);
puts("htons().");
if (connect(sockfd,(struct sockaddr *) &serv_addr,sizeof(serv_addr)) < 0)
error("ERROR connecting");
printf("Please enter the message: ");
bzero(buffer,256);
fgets(buffer,255,stdin);
n = write(sockfd,buffer,strlen(buffer));
if (n < 0)
error("ERROR writing to socket");
bzero(buffer,256);
n = read(sockfd,buffer,255);
if (n < 0)
error("ERROR reading from socket");
printf("%sn",buffer);
close(sockfd);
return 0;
}
linux port-forwarding port
add a comment |
I recently experienced problems establishing an SSH tunnel. It turned out that also neither Apache nor Nginx won't bind to any ports (even as root and/or outside the <1024 range).
From here I got a small test program (right below Sample Code; my version with output below), hoping I could track down the error. However, running ./server 6789 and ./client localhost 6789 (in two terminals on the same machine) gives no errors. There is just no connection, so server blocks in accept():
Server:
socket().
bzero().
htons().
bind().
listen().
Client:
socket().
gethostbyname().
bzero().
bcopy().
htons().
ERROR connecting: Connection timed out
The output statements are mine. They are the only thing I've changed, being printed after each successful command.
Apache and Nginx behave similarly, you just can't connect to the server.
However, with SSH there is an error:
$ ssh -4 -vvv -NL 5901:"$server":5901 "$user@$server"
[...]
debug1: Authentication succeeded (publickey).
Authenticated to <server> ([<ip>]:22).
debug1: Local connections to LOCALHOST:5901 forwarded to remote address <server>:5901
debug3: channel_setup_fwd_listener_tcpip: type 2 wildcard 0 addr NULL
debug1: Local forwarding listening on 127.0.0.1 port 5901.
bind: Cannot assign requested address
channel_setup_fwd_listener_tcpip: cannot listen to port: 5901
Could not request local forwarding.
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x10
debug1: Requesting no-more-sessions@openssh.com
(Without -4, the output is slightly different but basically the same.)
Anki behaves similarly:
$ anki
Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.py", line 916, in _bootstrap_inner
File "aqt/mediasrv.py", line 57, in run
File "socketserver.py", line 453, in __init__
File "aqt/mediasrv.py", line 38, in server_bind
File "socketserver.py", line 467, in server_bind
OSError: [Errno 99] Cannot assign requested address
Any idea what's the issue here or how I could track down the error?
With Devuan Jessie it has been working, and also on another PC running Devuan ASCII as well. I already checked if a package is missing that is there on the other installations, but didn't find anything that seemed relevant (I have netbase).
Thanks!
server.cpp:
/* A simple server in the internet domain using TCP
The port number is passed as an argument */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
void error(const char *msg)
{
perror(msg);
exit(1);
}
int main(int argc, char *argv[])
{
puts("Server:");
int sockfd, newsockfd, portno;
socklen_t clilen;
char buffer[256];
struct sockaddr_in serv_addr, cli_addr;
int n;
if (argc < 2) {
fprintf(stderr,"ERROR, no port providedn");
exit(1);
}
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0)
error("ERROR opening socket");
puts("socket().");
bzero((char *) &serv_addr, sizeof(serv_addr));
puts("bzero().");
portno = atoi(argv[1]);
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = INADDR_ANY;
serv_addr.sin_port = htons(portno);
puts("htons().");
if (bind(sockfd, (struct sockaddr *) &serv_addr,
sizeof(serv_addr)) < 0)
error("ERROR on binding");
puts("bind().");
listen(sockfd,5);
puts("listen().");
clilen = sizeof(cli_addr);
newsockfd = accept(sockfd,
(struct sockaddr *) &cli_addr,
&clilen);
if (newsockfd < 0)
error("ERROR on accept");
puts("accept().");
bzero(buffer,256);
n = read(newsockfd,buffer,255);
if (n < 0) error("ERROR reading from socket");
printf("Here is the message: %sn",buffer);
n = write(newsockfd,"I got your message",18);
if (n < 0) error("ERROR writing to socket");
close(newsockfd);
close(sockfd);
return 0;
}
client.cpp:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
void error(const char *msg)
{
perror(msg);
exit(0);
}
int main(int argc, char *argv[])
{
puts("Client:");
int sockfd, portno, n;
struct sockaddr_in serv_addr;
struct hostent *server;
char buffer[256];
if (argc < 3) {
fprintf(stderr,"usage %s hostname portn", argv[0]);
exit(0);
}
portno = atoi(argv[2]);
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0)
error("ERROR opening socket");
puts("socket().");
server = gethostbyname(argv[1]);
if (server == NULL) {
fprintf(stderr,"ERROR, no such hostn");
exit(0);
}
puts("gethostbyname().");
bzero((char *) &serv_addr, sizeof(serv_addr));
puts("bzero().");
serv_addr.sin_family = AF_INET;
bcopy((char *)server->h_addr,
(char *)&serv_addr.sin_addr.s_addr,
server->h_length);
puts("bcopy().");
serv_addr.sin_port = htons(portno);
puts("htons().");
if (connect(sockfd,(struct sockaddr *) &serv_addr,sizeof(serv_addr)) < 0)
error("ERROR connecting");
printf("Please enter the message: ");
bzero(buffer,256);
fgets(buffer,255,stdin);
n = write(sockfd,buffer,strlen(buffer));
if (n < 0)
error("ERROR writing to socket");
bzero(buffer,256);
n = read(sockfd,buffer,255);
if (n < 0)
error("ERROR reading from socket");
printf("%sn",buffer);
close(sockfd);
return 0;
}
linux port-forwarding port
What is the output ofip addr show lo?
– Kamil Maciorowski
5 hours ago
add a comment |
I recently experienced problems establishing an SSH tunnel. It turned out that also neither Apache nor Nginx won't bind to any ports (even as root and/or outside the <1024 range).
From here I got a small test program (right below Sample Code; my version with output below), hoping I could track down the error. However, running ./server 6789 and ./client localhost 6789 (in two terminals on the same machine) gives no errors. There is just no connection, so server blocks in accept():
Server:
socket().
bzero().
htons().
bind().
listen().
Client:
socket().
gethostbyname().
bzero().
bcopy().
htons().
ERROR connecting: Connection timed out
The output statements are mine. They are the only thing I've changed, being printed after each successful command.
Apache and Nginx behave similarly, you just can't connect to the server.
However, with SSH there is an error:
$ ssh -4 -vvv -NL 5901:"$server":5901 "$user@$server"
[...]
debug1: Authentication succeeded (publickey).
Authenticated to <server> ([<ip>]:22).
debug1: Local connections to LOCALHOST:5901 forwarded to remote address <server>:5901
debug3: channel_setup_fwd_listener_tcpip: type 2 wildcard 0 addr NULL
debug1: Local forwarding listening on 127.0.0.1 port 5901.
bind: Cannot assign requested address
channel_setup_fwd_listener_tcpip: cannot listen to port: 5901
Could not request local forwarding.
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x10
debug1: Requesting no-more-sessions@openssh.com
(Without -4, the output is slightly different but basically the same.)
Anki behaves similarly:
$ anki
Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.py", line 916, in _bootstrap_inner
File "aqt/mediasrv.py", line 57, in run
File "socketserver.py", line 453, in __init__
File "aqt/mediasrv.py", line 38, in server_bind
File "socketserver.py", line 467, in server_bind
OSError: [Errno 99] Cannot assign requested address
Any idea what's the issue here or how I could track down the error?
With Devuan Jessie it has been working, and also on another PC running Devuan ASCII as well. I already checked if a package is missing that is there on the other installations, but didn't find anything that seemed relevant (I have netbase).
Thanks!
server.cpp:
/* A simple server in the internet domain using TCP
The port number is passed as an argument */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
void error(const char *msg)
{
perror(msg);
exit(1);
}
int main(int argc, char *argv[])
{
puts("Server:");
int sockfd, newsockfd, portno;
socklen_t clilen;
char buffer[256];
struct sockaddr_in serv_addr, cli_addr;
int n;
if (argc < 2) {
fprintf(stderr,"ERROR, no port providedn");
exit(1);
}
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0)
error("ERROR opening socket");
puts("socket().");
bzero((char *) &serv_addr, sizeof(serv_addr));
puts("bzero().");
portno = atoi(argv[1]);
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = INADDR_ANY;
serv_addr.sin_port = htons(portno);
puts("htons().");
if (bind(sockfd, (struct sockaddr *) &serv_addr,
sizeof(serv_addr)) < 0)
error("ERROR on binding");
puts("bind().");
listen(sockfd,5);
puts("listen().");
clilen = sizeof(cli_addr);
newsockfd = accept(sockfd,
(struct sockaddr *) &cli_addr,
&clilen);
if (newsockfd < 0)
error("ERROR on accept");
puts("accept().");
bzero(buffer,256);
n = read(newsockfd,buffer,255);
if (n < 0) error("ERROR reading from socket");
printf("Here is the message: %sn",buffer);
n = write(newsockfd,"I got your message",18);
if (n < 0) error("ERROR writing to socket");
close(newsockfd);
close(sockfd);
return 0;
}
client.cpp:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
void error(const char *msg)
{
perror(msg);
exit(0);
}
int main(int argc, char *argv[])
{
puts("Client:");
int sockfd, portno, n;
struct sockaddr_in serv_addr;
struct hostent *server;
char buffer[256];
if (argc < 3) {
fprintf(stderr,"usage %s hostname portn", argv[0]);
exit(0);
}
portno = atoi(argv[2]);
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0)
error("ERROR opening socket");
puts("socket().");
server = gethostbyname(argv[1]);
if (server == NULL) {
fprintf(stderr,"ERROR, no such hostn");
exit(0);
}
puts("gethostbyname().");
bzero((char *) &serv_addr, sizeof(serv_addr));
puts("bzero().");
serv_addr.sin_family = AF_INET;
bcopy((char *)server->h_addr,
(char *)&serv_addr.sin_addr.s_addr,
server->h_length);
puts("bcopy().");
serv_addr.sin_port = htons(portno);
puts("htons().");
if (connect(sockfd,(struct sockaddr *) &serv_addr,sizeof(serv_addr)) < 0)
error("ERROR connecting");
printf("Please enter the message: ");
bzero(buffer,256);
fgets(buffer,255,stdin);
n = write(sockfd,buffer,strlen(buffer));
if (n < 0)
error("ERROR writing to socket");
bzero(buffer,256);
n = read(sockfd,buffer,255);
if (n < 0)
error("ERROR reading from socket");
printf("%sn",buffer);
close(sockfd);
return 0;
}
linux port-forwarding port
I recently experienced problems establishing an SSH tunnel. It turned out that also neither Apache nor Nginx won't bind to any ports (even as root and/or outside the <1024 range).
From here I got a small test program (right below Sample Code; my version with output below), hoping I could track down the error. However, running ./server 6789 and ./client localhost 6789 (in two terminals on the same machine) gives no errors. There is just no connection, so server blocks in accept():
Server:
socket().
bzero().
htons().
bind().
listen().
Client:
socket().
gethostbyname().
bzero().
bcopy().
htons().
ERROR connecting: Connection timed out
The output statements are mine. They are the only thing I've changed, being printed after each successful command.
Apache and Nginx behave similarly, you just can't connect to the server.
However, with SSH there is an error:
$ ssh -4 -vvv -NL 5901:"$server":5901 "$user@$server"
[...]
debug1: Authentication succeeded (publickey).
Authenticated to <server> ([<ip>]:22).
debug1: Local connections to LOCALHOST:5901 forwarded to remote address <server>:5901
debug3: channel_setup_fwd_listener_tcpip: type 2 wildcard 0 addr NULL
debug1: Local forwarding listening on 127.0.0.1 port 5901.
bind: Cannot assign requested address
channel_setup_fwd_listener_tcpip: cannot listen to port: 5901
Could not request local forwarding.
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x10
debug1: Requesting no-more-sessions@openssh.com
(Without -4, the output is slightly different but basically the same.)
Anki behaves similarly:
$ anki
Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.py", line 916, in _bootstrap_inner
File "aqt/mediasrv.py", line 57, in run
File "socketserver.py", line 453, in __init__
File "aqt/mediasrv.py", line 38, in server_bind
File "socketserver.py", line 467, in server_bind
OSError: [Errno 99] Cannot assign requested address
Any idea what's the issue here or how I could track down the error?
With Devuan Jessie it has been working, and also on another PC running Devuan ASCII as well. I already checked if a package is missing that is there on the other installations, but didn't find anything that seemed relevant (I have netbase).
Thanks!
server.cpp:
/* A simple server in the internet domain using TCP
The port number is passed as an argument */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
void error(const char *msg)
{
perror(msg);
exit(1);
}
int main(int argc, char *argv[])
{
puts("Server:");
int sockfd, newsockfd, portno;
socklen_t clilen;
char buffer[256];
struct sockaddr_in serv_addr, cli_addr;
int n;
if (argc < 2) {
fprintf(stderr,"ERROR, no port providedn");
exit(1);
}
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0)
error("ERROR opening socket");
puts("socket().");
bzero((char *) &serv_addr, sizeof(serv_addr));
puts("bzero().");
portno = atoi(argv[1]);
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = INADDR_ANY;
serv_addr.sin_port = htons(portno);
puts("htons().");
if (bind(sockfd, (struct sockaddr *) &serv_addr,
sizeof(serv_addr)) < 0)
error("ERROR on binding");
puts("bind().");
listen(sockfd,5);
puts("listen().");
clilen = sizeof(cli_addr);
newsockfd = accept(sockfd,
(struct sockaddr *) &cli_addr,
&clilen);
if (newsockfd < 0)
error("ERROR on accept");
puts("accept().");
bzero(buffer,256);
n = read(newsockfd,buffer,255);
if (n < 0) error("ERROR reading from socket");
printf("Here is the message: %sn",buffer);
n = write(newsockfd,"I got your message",18);
if (n < 0) error("ERROR writing to socket");
close(newsockfd);
close(sockfd);
return 0;
}
client.cpp:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
void error(const char *msg)
{
perror(msg);
exit(0);
}
int main(int argc, char *argv[])
{
puts("Client:");
int sockfd, portno, n;
struct sockaddr_in serv_addr;
struct hostent *server;
char buffer[256];
if (argc < 3) {
fprintf(stderr,"usage %s hostname portn", argv[0]);
exit(0);
}
portno = atoi(argv[2]);
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0)
error("ERROR opening socket");
puts("socket().");
server = gethostbyname(argv[1]);
if (server == NULL) {
fprintf(stderr,"ERROR, no such hostn");
exit(0);
}
puts("gethostbyname().");
bzero((char *) &serv_addr, sizeof(serv_addr));
puts("bzero().");
serv_addr.sin_family = AF_INET;
bcopy((char *)server->h_addr,
(char *)&serv_addr.sin_addr.s_addr,
server->h_length);
puts("bcopy().");
serv_addr.sin_port = htons(portno);
puts("htons().");
if (connect(sockfd,(struct sockaddr *) &serv_addr,sizeof(serv_addr)) < 0)
error("ERROR connecting");
printf("Please enter the message: ");
bzero(buffer,256);
fgets(buffer,255,stdin);
n = write(sockfd,buffer,strlen(buffer));
if (n < 0)
error("ERROR writing to socket");
bzero(buffer,256);
n = read(sockfd,buffer,255);
if (n < 0)
error("ERROR reading from socket");
printf("%sn",buffer);
close(sockfd);
return 0;
}
linux port-forwarding port
linux port-forwarding port
asked 5 hours ago
philipp2100philipp2100
11
11
What is the output ofip addr show lo?
– Kamil Maciorowski
5 hours ago
add a comment |
What is the output ofip addr show lo?
– Kamil Maciorowski
5 hours ago
What is the output of
ip addr show lo?– Kamil Maciorowski
5 hours ago
What is the output of
ip addr show lo?– Kamil Maciorowski
5 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1428355%2fcant-bind-to-any-ports-devuan%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1428355%2fcant-bind-to-any-ports-devuan%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What is the output of
ip addr show lo?– Kamil Maciorowski
5 hours ago