sngrep icon indicating copy to clipboard operation
sngrep copied to clipboard

HEP server not working properly

Open sajai20 opened this issue 2 years ago • 5 comments

Hi

In server 192.168.151.94 we have sngrep installed now we need to route sip packets from 94 server to 144 server in 94 server i have used a command ./sngrep -H udp:192.148.151.144:9060 --no-interface -q and in 144 server i have used ./sngrep -L udp:192.148.151.144:9060 to listen to packet and display still i cannot see any packets in 144 sngrep when i'm exiting the sngrep it's throwing an error like Error binding address: Cannot assign requested address how to over come this issue, what i'm doing wrong here is my configuration is correct.

sajai20 avatar Dec 10 '23 07:12 sajai20

Hi @sajai20

The process seems correct, but the error you're receiving is relevant. It means it can not reserve port 9060 for reading packets sent by .94 server. There is another process that is already listing in that port, use ss or netstat to check what service is already binded to 9060 or try changing the port in both servers (something like 19060).

Regards

Kaian avatar Dec 11 '23 13:12 Kaian

i tried to implement in different server now sngrep throwing an error EEP server: failed getaddrinfo() for 10.212.178.19:9060 how to solve this

sajai20 avatar Dec 12 '23 12:12 sajai20

Is 10.212.178.19 a valid ip in that server? you can also listen in all addresses

./sngrep -L udp:0.0.0.0:9060

Kaian avatar Dec 13 '23 09:12 Kaian

hi @Kaian

My requirement is i need to send packets from 8 different server to single server and view all the packets in one server but i cannot use same port every client server due to binding issue how can i solve it using HEP server concept in sngrep can we achieve it -H 0.0.0.0:port in all the eight server and listen in a single server -L 0.0.0.0:port is that possible

sajai20 avatar Dec 16 '23 06:12 sajai20

In the server receiving the HEP packets run:

sngrep -L udp:0.0.0.0:9060 

Take note of that server IP address (p.e. 192.168.0.1) and run in the other 8 servers:

sngrep -H udp:192.168.0.1:9060 

Best regards,

Kaian avatar Dec 18 '23 08:12 Kaian

Closes due to lack of activity. If the issue still persist feel free to reopen.

Kaian avatar May 06 '24 06:05 Kaian