Can't Connect to the server

This is a discussion on Can't Connect to the server within the C Programming forums, part of the General Programming Boards category; Hey, I'm coding this client/server program, and when I try to go through the open_server function fo my program, it ...

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    215

    Can't Connect to the server

    Hey, I'm coding this client/server program, and when I try to go through the open_server function fo my program, it always goes to the err function saying connection rejected. However, when I run this program on unix, it works, it connects to the server I'm trying to get to. I have posted the code on the website below, and the open_server function is between the lines of 00520 and 00670. A lot of it is documentation. Here's the site:

    http://sourcepost.sytes.net/sourcevi...ource_id=14646

    Please help. thanks very much :-)

  2. #2
    Registered User
    Join Date
    May 2004
    Posts
    215
    After emailing someone, they told me I needed to send the following, the ip, the Password,the version and the interface to the variable line. Well the password and version are already there, but i dont know how to send the internface or ip.

    im suppose to send it like this

    sprintf(line,"%s %s %s %s\n","STP",PASSWD,VERSION, "stpc");
    ws_putline(line);
    fflush(ws_fdw);

    "STP" should be the IP im assuming, and then "stpc" should be the interface, but i dont know how to change those or what to change them to. If anyone can help, that would be wonderful.

    thanks, and again the website for my code is at

    http://sourcepost.sytes.net/sourcevi...ource_id=14646

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to connect to a ftp server
    By Coding in forum Networking/Device Communication
    Replies: 6
    Last Post: 07-12-2010, 10:36 AM
  2. Can't get to connect clients to server
    By pyngz in forum C# Programming
    Replies: 2
    Last Post: 03-11-2009, 04:46 AM
  3. Connect to server and get info from mysql db.
    By Sam Granger in forum C++ Programming
    Replies: 2
    Last Post: 01-26-2006, 05:11 AM
  4. Client timed-out once on connect(), can never connect() again
    By registering in forum Networking/Device Communication
    Replies: 6
    Last Post: 10-28-2003, 02:46 PM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21