15,918,330 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Pikky86 (Top 14 by date)
Pikky86
7-May-12 3:43am
View
Yes, you're right. It works when I leave it on my own computer, with the IP at 127.0.0.1, or with the IP of my cell phone's wireless tether, but as soon as I put it on a second computer it won't connect to the server. I tried port forwarding once but I couldn't get it to work, but I'll try it again as you suggested.
Pikky86
7-May-12 1:13am
View
I am able to ping my own external IP though, but if I set the client to try and connect to that IP address, it'll never connect. The only time I've got a connection is when I used 127.0.0.1 to my own machine.
Pikky86
7-May-12 1:11am
View
I think it's relevant, and that's a good idea.
Today I used wireless tethering through my laptop and ran the server, and when I did that it let me connect to itself (I connected on my laptop to the server, then ran the client on the same laptop on the same network); but when I tried another computer to my server (now no longer under my house's firewall) it didn't go through. I'm guessing that the other computer I tried must've been blocking it as well (seems many computers block IP these days), so I'll try a couple more different computers and see if I can't make it work.
Pikky86
5-May-12 17:10pm
View
Oh thanks again. That helps.
Pikky86
5-May-12 15:55pm
View
Oh, if it's a firewall, then that's something I think I can handle without any programming. I'll also look up external IP and see if it's something I can do too. I didn't think to look up the meaning of that error, I just assumed it was some problem with the port (is the port ok at 1101 by the way?). Thanks a lot for helping with that.
Pikky86
5-May-12 15:31pm
View
Oh sorry I misunderstood. The error I get for
[CODE]
if( connect( hsock, (struct sockaddr*)&my_addr, sizeof(my_addr)) == SOCKET_ERROR ){
fprintf(stderr, "*Error connecting* (Socket %d)\n", WSAGetLastError());
[/CODE]
is '10061'
Pikky86
5-May-12 14:43pm
View
There is no error code since it compiles fine. The only error is that it won't connect to the server when I actually try using the client.
Pikky86
24-Apr-12 23:15pm
View
Thanks for quoting Star Trek. I didn't think I could do it, but now I'm confident that anything is possible :D I finally got a basic server/client working thanks to Mohibur and I'm gonna start working with that.
Pikky86
24-Apr-12 21:54pm
View
Thank you so much!!! Ah, it was so simple! But I couldn't get it to work before at all. Now it compiles right away~
Pikky86
24-Apr-12 16:23pm
View
I went ahead and updated my question, though I'm not sure if it'll be much help...
Pikky86
24-Apr-12 3:07am
View
I'd agree that C++ isn't a simple language. The reason I'm using it is because it's the only language I'm semi-familiar with, but I'm sure .NET would take less time to do what I'm trying to do.
Pikky86
24-Apr-12 2:34am
View
Thx, I'll try it again with SFML (as before) and another new tutorial I found as well and update the question tomorrow with the errors I'm getting in the compiler.
Pikky86
24-Apr-12 2:18am
View
Yes, I've tried it. I've actually downloaded several pre-made .cpp files from various tutorials for making a server and a client, but couldn't get a single one of them to compile successfully - it just made me feel even stupider. I'm not sure if it's been header issues or what, but I've been much luckier with other things than networking.
Pikky86
24-Apr-12 2:01am
View
Yeah, I still didn't find a way out. All the beginner lessons I found in networking are waaay over my head. I'm only experienced in basic console programming.
Show More