Closed marcosfrm closed 3 years ago
https://github.com/Andy2244/wsdd2/blob/3b2a6a476b47822e7231a0f209c725489da50801/wsdd2.c#L296
se->s_port
is network byte order, need to convert it.
--- wsdd2.c 2020-10-24 11:45:05.000000000 -0300
+++ wsdd2.c 2020-11-16 16:14:56.893012274 -0300
@@ -293,7 +293,7 @@
};
struct servent *se = getservbyname(sv->port_name,
servicename[sv->type]);
- ep->port = se ? se->s_port : 0;
+ ep->port = se ? ntohs(se->s_port) : 0;
if (!ep->port)
ep->port = sv->port_num;
if (!ep->port) {
At least now it will use the right port. Still not working though.
Working after @vovcat changes. Closing.
wsdd2
does not bind to port 5355? What is port 60180?Windows requests are not answered:
wsdd2 1.8.3.1, CentOS 8.