Click here to Skip to main content
15,922,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Terminal Type Window???? Pin
Fredrik Skog16-Jan-02 21:23
Fredrik Skog16-Jan-02 21:23 
GeneralBitBlt() Pin
The_Server16-Jan-02 11:45
The_Server16-Jan-02 11:45 
GeneralRe: BitBlt() Pin
Christian Graus16-Jan-02 11:54
protectorChristian Graus16-Jan-02 11:54 
GeneralRe: BitBlt() Pin
The_Server16-Jan-02 12:32
The_Server16-Jan-02 12:32 
GeneralRe: BitBlt() Pin
Christian Graus16-Jan-02 12:35
protectorChristian Graus16-Jan-02 12:35 
GeneralRe: BitBlt() Pin
The_Server16-Jan-02 13:17
The_Server16-Jan-02 13:17 
GeneralRe: BitBlt() Pin
Christian Graus16-Jan-02 13:25
protectorChristian Graus16-Jan-02 13:25 
Generalbind() error Pin
Rickard Andersson2016-Jan-02 11:11
Rickard Andersson2016-Jan-02 11:11 
I'm trying to edit the code in one of the articles here on CodeProject. It's the article that shows how to write Client/Server apps to remote a computer. But when trying to connect to the server (the app) on the server in our network (the computer) it doesn't looks like it (teh server app) can't find the IP. Well here is the code that perhaps is the code that assigns the IP of the current computer:



<br>  local.sin_addr.s_addr = htonl(INADDR_ANY);
	local.sin_family = AF_INET;
	local.sin_port = htons(DEFAULT_PORT);<br>




And I don't know what INADDR_ANY do, is it the local IP? It should be!?
But on the server (the server computer) in our LAN seems to not retreve the IP (No firewall is installed, only All_Aboard) and then I tried this but it gives me an error when calling bind():



<br>  local.sin_addr.s_addr = inet_addr("192.168.244.129");	local.sin_family = AF_INET;
	local.sin_port = htons(DEFAULT_PORT);<br>




The error code is:
WSAEADDRNOTAVAIL
(10049)
Cannot assign requested address.
The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local machine. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote machine (for example, address or port 0).
(From MSDN Library)


CAN YOU HELP ME!!!!!!!

------------------------------
©0d3 ©®4©k3® - That's me! Smile | :)
------------------------------
GeneralRe: bind() error Pin
Joaquín M López Muñoz16-Jan-02 11:37
Joaquín M López Muñoz16-Jan-02 11:37 
GeneralRe: bind() error Pin
Rickard Andersson2016-Jan-02 21:11
Rickard Andersson2016-Jan-02 21:11 
GeneralRe: bind() error Pin
Joaquín M López Muñoz16-Jan-02 21:29
Joaquín M López Muñoz16-Jan-02 21:29 
GeneralRe: bind() error Pin
Rickard Andersson2016-Jan-02 22:57
Rickard Andersson2016-Jan-02 22:57 
GeneralRe: bind() error Pin
Joaquín M López Muñoz17-Jan-02 2:04
Joaquín M López Muñoz17-Jan-02 2:04 
QuestionWhy does this crash? Pin
User 665816-Jan-02 10:26
User 665816-Jan-02 10:26 
AnswerRe: Why does this crash? Pin
Michael Dunn16-Jan-02 10:39
sitebuilderMichael Dunn16-Jan-02 10:39 
GeneralRe: Why does this crash? Pin
User 665816-Jan-02 10:53
User 665816-Jan-02 10:53 
GeneralRe: Why does this crash? Pin
Michael Dunn16-Jan-02 11:03
sitebuilderMichael Dunn16-Jan-02 11:03 
GeneralRe: Why does this crash? Pin
User 665816-Jan-02 11:08
User 665816-Jan-02 11:08 
GeneralRe: Why does this crash? Pin
Nish Nishant16-Jan-02 13:15
sitebuilderNish Nishant16-Jan-02 13:15 
GeneralRe: Why does this crash? Pin
Mustafa Demirhan16-Jan-02 13:30
Mustafa Demirhan16-Jan-02 13:30 
GeneralRe: Why does this crash? Pin
User 665817-Jan-02 7:58
User 665817-Jan-02 7:58 
GeneralRe: Why does this crash? Pin
Mustafa Demirhan17-Jan-02 13:44
Mustafa Demirhan17-Jan-02 13:44 
GeneralRe: Why does this crash? Pin
Alvaro Mendez17-Jan-02 9:33
Alvaro Mendez17-Jan-02 9:33 
GeneralRe: Why does this crash? Pin
Mustafa Demirhan17-Jan-02 10:16
Mustafa Demirhan17-Jan-02 10:16 
GeneralMicrosoft Word Documents Pin
Kevnar16-Jan-02 9:59
Kevnar16-Jan-02 9:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.