diff --git a/gdbserver/gdb-server.c b/gdbserver/gdb-server.c index 32f0d8b..ad7ce65 100644 --- a/gdbserver/gdb-server.c +++ b/gdbserver/gdb-server.c @@ -663,7 +663,7 @@ int serve(stlink_t *sl, st_state_t *st) { struct sockaddr_in serv_addr; memset(&serv_addr,0,sizeof(struct sockaddr_in)); serv_addr.sin_family = AF_INET; - serv_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); + serv_addr.sin_addr.s_addr = INADDR_ANY; serv_addr.sin_port = htons(st->listen_port); if(bind(sock, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0) {