Quantcast
Channel: User Dominique - Super User
Viewing all articles
Browse latest Browse all 175

How to simulate Hercules on local IP address?

$
0
0

I would like to simulate a TCP server, using Hercules (by HW-Group).

When I configure the port (12714), netstat -aon | findstr "12714" shows me this result:

enter image description here

DOS Prompt>netstat -aon | findstr "12714"TCP  0.0.0.0:12714  0.0.0.0:0  LISTENING  29408

Does anybody know how I can get TCP-server address "127.0.0.1:12714" instead of "0.0.0.0:12714" (or any other IP address, I just want to get rid of this broadcast address)?

The reason I ask: a bind() is done to that IP address/port, with the following exception as a result:

Communication.TcpConnection.Connect | TcpConnection: Connecting failed (127.0.0.1:12714):System.Net.Sockets.SocketException (0x80004005): The requested address is not valid in its contextat System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)at System.Net.Sockets.Socket.Bind(EndPoint localEP)at Server.Communication.TcpConnection.Connect() in C:\...Communication\TcpConnection.cs:line 60 

Thanks in advance


Viewing all articles
Browse latest Browse all 175

Trending Articles