Thread: Help! Telnet??

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    167

    Help! Telnet??

    I'm trying to run the server client on: http://beej.us/guide/bgnet/output/ht...l#simpleserver

    I have it compiled on a linux machine (through Putty) and when I run it, it just sits there with "server: waiting for connections...".

    So about the "telnet remotehostname 3490". How do I know what the remotehostname is???
    Last edited by Paul22000; 11-08-2008 at 03:52 PM.

  2. #2
    Ex scientia vera
    Join Date
    Sep 2007
    Posts
    477
    telnet 127.0.0.1 port

    or

    telnet localhost port
    "What's up, Doc?"
    "'Up' is a relative concept. It has no intrinsic value."

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    167
    Quote Originally Posted by IceDane View Post
    telnet 127.0.0.1 port

    or

    telnet localhost port
    Ahhh, thanks! (Why doesn't the guide say that lol?)

    I got:

    Trying 127.0.0.1...
    Connected to localhost (127.0.0.1).
    Escape character is '^]'.
    Hello, world!Connection closed by foreign host.

    Anyway, now the fun part... Modifying it to transmit custom messages back and forth

  4. #4
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    maybe because they assume people trying to write a server will be reasonably familiar with basic networking knowledge...

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Moved to Networking/Device Communication forum.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with telnet and tcp
    By hoAx in forum Windows Programming
    Replies: 11
    Last Post: 03-11-2008, 02:03 PM
  2. C Function Telnet Email
    By karcheee in forum C Programming
    Replies: 3
    Last Post: 07-25-2005, 11:39 AM
  3. C Execl Telnet
    By karcheee in forum C Programming
    Replies: 1
    Last Post: 04-26-2005, 02:31 PM
  4. telnet!!
    By bigB8210 in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-13-2003, 05:09 PM
  5. Most Secure (SSH) Telnet Client for Programming
    By kuphryn in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 02-14-2002, 08:49 PM