473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Error 10049 with C socket connection on local IP address

Hi,
i am writing a simple program in c for socket connection. ANd running the sample code in MSDN lib. My question is that when using the addr 127.0.0.1 loop back test can both sever and client run and will be connected or either one will only run. And also i am getting error no 10049 when using my LAn pc ip addr 192.168.0.0 .Whats wrong. Any one who knows the concept plz help.
Jul 9 '07 #1
4 12480
kky2k
34
Hi,
i am writing a simple program in c for socket connection. ANd running the sample code in MSDN lib. My question is that when using the addr 127.0.0.1 loop back test can both sever and client run and will be connected or either one will only run. And also i am getting error no 10049 when using my LAn pc ip addr 192.168.0.0 .Whats wrong. Any one who knows the concept plz help.
so ur requirement is running both client and server in the same pc..so first run the client and then the server... but wat matters is the reciever end has to be run first then the sending end..

and regarding ur 10049 error try to disable ur firewall and antivirus if any..
Jul 9 '07 #2
After disabling firewall and antivirus still the problem exsist. Could any know abt it .plz help. Any change to be done in the code other than yhe ip addr.
Jul 10 '07 #3
The client sever is now working. when u specify the IP addr to the sever its giving bind error. When making it "0.0.0.0" to make it accept any client connection its working properly. thanks for all who took interset in this.
Jul 11 '07 #4
sicarie
4,677 Expert Mod 4TB
The client sever is now working. when u specify the IP addr to the sever its giving bind error. When making it "0.0.0.0" to make it accept any client connection its working properly. thanks for all who took interset in this.
Thanks for posting your answer. Next time you start a thread, please make sure you read this first, especially the parts about good thread titles and posting what you have and what you have tried.

Thanks!
Jul 11 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Joe | last post by:
Hi, I browsed the news and a few seem to have this problem too, but no solution ! I have a client server application where in case the connection gets bad (crashes or whatever) client or...
0
by: Alessandro | last post by:
Hi, I can't figure out why this code gives me the SocketException with ErrorCode 10049 when Bind method is called. Notes: 1)I have no Firewall and I can reach all servers on the Internet. ...
0
by: ruju00 | last post by:
I am getting an error in Login() method of the following class FtpConnection public class FtpConnection { public class FtpException : Exception { public FtpException(string message) :...
14
by: DaTurk | last post by:
I am makeing a Multicast server client setup and was wondering what the difference is between Socket.Connect, and Socket.Bind. It may be a stupid question, but I was just curious. Because I...
4
by: seets375 | last post by:
Hi, I have two ethernet interfaces on my system, with IPs assigned to the interfaces from different subnets (e.g. eth1 - 10.10.10.10 and eth2 - 20.20.20.20 ). I'm connecting these interfaces to...
6
by: Sean | last post by:
Hi Everyone, My apologies for a somewhat dump question but I am really stuck. I have been working on this code for two days straight I am dont know what is wrong with it. when I run the code, All...
0
by: palmem | last post by:
I am trying to write a simple FTP server in order to learn about sockets This is my first time trying sockets This code should take a connection on port 8110, dump it to a client "thread" (not...
0
by: gnanapoongothai | last post by:
hi, i am doing simple socket program to send char array and recieve char array. its working fine when ip addr is 127.0.0.1, loop back. both client and sever works fine. but when i change the IP...
5
by: natambu | last post by:
I have a linux box with multiple ip addresses. I want to make my python client connect from one of the ip addresses. Here is my code, no matter what valid information I put in the bind it always...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.