473,404 Members | 2,195 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,404 software developers and data experts.

WINSOCK connection to a remote ip problem.

Hello! First, excuse me if I have any mistakes because Bulgarian is my native language and English is a foreign one. So the problem is:
I have a chat program with to parts: server and client ones.
When I start both of them on my computer and start listening on the port I told the program and connect with the client one, everything is OK. I decided to test the program with some friends and gave them the server part. They start listeting on port 123 for example and I'm trying to connect them but the program says "Request time out" because it doesn't connect. Are there any additional files except mswinsck.ocx which are necessary to run a program with WINSOCK control in it.

Best regards,
Penko Mitev
Mar 24 '07 #1
4 2606
vijaydiwakar
579 512MB
Hello! First, excuse me if I have any mistakes because Bulgarian is my native language and English is a foreign one. So the problem is:
I have a chat program with to parts: server and client ones.
When I start both of them on my computer and start listening on the port I told the program and connect with the client one, everything is OK. I decided to test the program with some friends and gave them the server part. They start listeting on port 123 for example and I'm trying to connect them but the program says "Request time out" because it doesn't connect. Are there any additional files except mswinsck.ocx which are necessary to run a program with WINSOCK control in it.

Best regards,
Penko Mitev
No
check ur network
Mar 24 '07 #2
Well,
I tried it with a friend from another town, it worked. I do not know how it is possible, maybe something in our nets is....

Thanks to the person above,
Best regards
Penko Mitev
Mar 24 '07 #3
Robbie
180 100+
The problem is probably that your first friends were using a router to connect to the internet. When you tried to connect to them, you were only actually connecting to their router. The router didn't know what computer (on the LAN) to send that request to, so it dumped it.

To get it to work, the router needs to know to send requests which come on port 123 for example, to the right computer. That's called port-forwarding, you should be able to find some info pretty easily if you do a little search. It's a common problem now so many people like to have wireless connections, I doubt it's really a problem with your programming. ;)
Apr 3 '07 #4
Dököll
2,364 Expert 2GB
Good point guys!

Also, you should ping your friends, see if you can reach them that way. Request time out tells me you're not connecting to their IP. Are your friends running a DHPC line? Their IP may have changed on you...

Good luck with the project!

Dököll
Apr 14 '07 #5

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

Similar topics

1
by: N.Naeem | last post by:
Hello all i need a solution to the following problem I have an application which listens to a port for incoming connections from a client via a Winsock. let's call this Winsock1 Upon a...
4
by: Ophir | last post by:
Hello all ! I wrote a simple ActiveX DLL to wrap winsock functionality so I can use it in an ASP page. I call it MyWinSock In the Class module I use this declaration: Dim ctlSocket as...
3
by: SK | last post by:
Hi all, I am dealing with sockets in my code. I open them like - System.Net.IPAddress remoteIPAddress = System.Net.IPAddress.Parse (szIPSelected); System.Net.IPEndPoint remoteEndPoint = new...
1
by: Nicolas Ghesquiere | last post by:
Hello I have a problem with my current program. The meaning of the program is to allow users to login to a server to allow them to access the internet. My program communicates with a MS isa...
0
by: CharChabil | last post by:
Hey Guys Using Winsock application under vb.net 2005 Using same client, i want to connect to many remote servers the Exception that i m facing : "cant not send data while not connected" i...
0
by: fusgerm | last post by:
I was curious to know the size of the internal winsock read-buffer associated with a telnet socket. I wanted to know how long it would take to fill it on my internet connection, and I wanted to set...
4
by: romcab | last post by:
Hi, Below is my simple code regarding socket connection and currently I'm encountering problem (I cannot connect to the remote pc). I have created a similar program which I created in VB.Net...
1
xtianixm
by: xtianixm | last post by:
im just wondering if i have a client/server application which winsock is involved. does that affect on my connections? what i mean is when winsock is listening to an incoming remote host to connect...
3
AaronL
by: AaronL | last post by:
Hello, I am currently working on a project that has me in sort of a bind. What I want to do is retrieve web pages from the internet, and strip them down to just text. I'll get using Regular...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.