Help! Telnet??

This is a discussion on Help! Telnet?? within the Networking/Device Communication forums, part of the General Programming Boards category; 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 ...

  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
    478
    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,183
    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
    22,265
    Moved to Networking/Device Communication forum.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    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, 03:03 PM
  2. C Function Telnet Email
    By karcheee in forum C Programming
    Replies: 3
    Last Post: 07-25-2005, 12:39 PM
  3. C Execl Telnet
    By karcheee in forum C Programming
    Replies: 1
    Last Post: 04-26-2005, 03:31 PM
  4. telnet!!
    By bigB8210 in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-13-2003, 06: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

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