[En-Nut-Discussion] Problem with TCP/IP socket connection to remote server

Tegshbayar G g_tegshbayar at yahoo.com
Thu Mar 16 12:24:08 CET 2006


Hi all..
   
  I have a Ethernut 2.1 board with Nut/OS 4.0.3..
  Very simple TCP/IP client program in my Ethernut. 
  Code is looks like follow.
  ---------
   
  sock = NutTcpCreateSocket();
   
  NutTcpConnect(sock, ip_server, port_server);
   
  NutTcpSend(sock, "Hi",2);
   
  rc = NutTcpReceive(sock, buff, sizeof(buff));
   
  NutTcpCloseSocket(sock);
   
  ----------
  It is for to connect to Linux TCP/IP server.
   
  When TCP/IP client-server programming in my LAN, it was working,
  But I want to use my dedicated RH 9.0 server as TCP/IP server, then TCP/IP client in the Ethernut didn't work. 
  Simuliar tcp/ip client program in my Debian Sarge system working nicely with TCP/IP server process in my dedicated RH 9.0 .
   
  I wonder whether Ethernut TCP/IP socket can work only in Local Area Network.
   
  Tegshbayar


Yours Truly

Tegshbayar
		
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 


More information about the En-Nut-Discussion mailing list