This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TIVA TM4C1294XL - Energia ChatServer example

Other Parts Discussed in Thread: ENERGIA

Hello all,

I'm trying to execute some example codes of Energia(0101E0017) using my TIVA TM4C1294XL. I'm currently trying to use the Ethernet library with the example code ChatServer:

/*
 Chat  Server
 
 A simple server that distributes any incoming messages to all
 connected clients.  To use telnet to  your device's IP address and type.
 You can see the client's input in the serial monitor as well.
 
 Circuit:
 * Analog inputs attached to pins A0 through A5 (optional)
 
 created 18 Dec 2009
 by David A. Mellis
 modified 9 Apr 2012
 by Tom Igoe

 modified 2/19/2014
 by Craig Hollabaugh
   removed SPI and leonardo references
 
 */

#include <Ethernet.h>

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network.
// gateway and subnet are optional:
byte mac[] = {0x00, 0x1A, 0xB6, 0x02, 0xEF, 0xD1 };
IPAddress ip(192,168,1,177);
IPAddress gateway(192,168,1,1);
IPAddress subnet(255,255,255,0);


// telnet defaults to port 23
EthernetServer server(23);
boolean alreadyConnected = false; // whether or not the client was connected previously

void setup() {
  // initialize the ethernet device
  Ethernet.begin(mac, ip, gateway, subnet);
  // start listening for clients
  server.begin();
  Serial.begin(9600);

  Serial.print("Chat server address:");
  Serial.println(Ethernet.localIP());
}

void loop() {
  // wait for a new client:
  EthernetClient client = server.available();

  // when the client sends the first byte, say hello:
  if (client) {
    if (!alreadyConnected) {
      // clead out the input buffer:
      client.flush();    
      Serial.println("We have a new client");
      client.println("Hello, client!"); 
      alreadyConnected = true;
    } 

    if (client.available() > 0) {
      // read the bytes incoming from the client:
      char thisChar = client.read();
      // echo the bytes back to the client:
      server.write(thisChar);
      // echo the bytes to the server as well:
      Serial.write(thisChar);
    }
  }
}

I believe that this code is one of the simplest code I have as an example, however, I can't get this to work.

1st: What's my IP address? I tried to plug my TIVA to a router (192.168.1.1 - DHCP enabled) and my PC to the router (192.168.1.2). I used a IP Scanner software to find out what was the TIVA's IP Address but with no success... How do I find it?

2nd: As the program says: 

"A simple server that distributes any incoming messages to all
connected clients. To use telnet to your device's IP address and type.
You can see the client's input in the serial monitor as well."

I've connected a potentiometer to ADC0, but I don't know where the values will be displayed - Will be on Serial Monitor?

Thank you.