Altera_Forum
Honored Contributor
16 years agosimple socket server example on cyclone II dev kit
Hi,
I want to use the simple socket server example with the cyclone II dev kit. I compiled it and then I run it. In the file simple_socket_server.h I defined the IP-adress like this:
#define IPADDR0 192# define IPADDR1 168# define IPADDR2 1# define IPADDR3 234
#define GWADDR0 192 # define GWADDR1 168 # define GWADDR2 1 # define GWADDR3 1
#define MSKADDR0 255# define MSKADDR1 255# define MSKADDR2 255# define MSKADDR3 0
The IP-Adress of my PC is 192.168.1.1 with the same subnet adress. Then I connected the Board directly via Ethernet to my PC. In the console I can read the following:
Your Ethernet MAC address is 00:07:ed:0f:b4:14
prepped 1 interface, initializing...
Created "Inet main" task (Prio: 2)
Created "clock tick" task (Prio: 3)
smsc91c111 Auto-negotiation: 100 Mbps, Full Duplex
SMSC ethernet Rev: 0x3392, ram: 8192
IP address of et1 : 0.1.1.234
DHCP timed out, going back to default IP address(es)
Simple Socket Server starting up
Simple Socket Server listening on port 30
Created "simple socket server" task (Prio: 4)
But now I can't reach the board by a ping (icmp-request) and of course I can't connect via TCP to the board. I wonder why it says that the IP-adress is 0.1.1.234: 1. This is no valid ip-adress, because it includes a zero... 2. It's not the same as I defined it in simple_socket_server.h Who can help? :) Regards, Stefan P.S.: When I press "run" it takes ~5 minutes until it's really running...