ip - Winsock2 non-local refused -


(i have not put code in question since actual code doesn't matter here. if though can edit question later put in.)

i'm new using winsock2 or other networking api matter. have simple server application , client application in server sends string client , disconnects.

the applications work fine when use localhost or 127.0.0.1 inet_addr() argument, when use "real" ip, client application gets wsaeconnrefused , server doesn't see it. made sure port same both applications , protocol same.

[edit] have come issue after abandoning networking while. think may have fact using router, , not in code.

wsaeconnrefused active refusal of connection peer or intermediate firewall. if peer issued it, means got ip address or port wrong, or else got right server isn't running; anyway, nothing listening @ ip:port. if firewall, adjust it.

did use htons() on port number?


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -