Altera_Forum
Honored Contributor
21 years agoHTTP server demo not accepting connections
I've been trying the HTTP server demo, and haven't had any luck getting the demo board to accept connections from outside.
I built it according to the directions in kits/nios2/components/ecos/eCos%20for%20Nios%20II.htm, section 8, and when I ran it (using either the "hello" or "twothreads" example programs), it would successfully DHCP, obtaining the right address, servers, gateway, etc., and run the demo program. However, any connection attempt to port 80 would time out (even tried telnet). I added an FTP server, rebuilt/reinstalled, and tried to connect to port 21; nothing. Now I'm using the "ping test" ethernet test program shipped with eCos, and switched to manually configured eth0, with the same results. Here's the output from that test:nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "MasterBlaster ", device 1, instance 0
nios2-terminal: starting in terminal mode (Control-C exits)
Init: mbinit(0x00000000)
Init: cyg_net_init_devs(0x00000000)
Init device 'lan91c111_eth0'
Init: loopattach(0x00000000)
Init: ifinit(0x00000000)
Init: domaininit(0x00000000)
Init: cyg_net_add_domain(0x01061cb0)
New domain internet at 0x00000000
Init: cyg_net_add_domain(0x0106166c)
New domain route at 0x00000000
Init: call_route_init(0x00000000)
Done
Start PING test
BOOTP op: REPLY
htype: Ethernet
hlen: 6
hops: 0
xid: 0x0
secs: 0
flags: 0x0
hw_addr: 00:07:ed:0b:08:85
client IP: 10.8.1.62
my IP: 10.8.1.62
server IP: 10.4.1.2
gateway IP: 10.8.254.254
options:
subnet mask: 255.255.0.0
IP broadcast: 10.8.255.255
gateway: 10.8.254.254
Warning: Driver can't set multi-cast mode
Warning: Driver can't set multi-cast mode
Warning: Driver can't set multi-cast mode
PING server 10.4.1.2
Warning: Driver can't set multi-cast mode
recvfrom: Operation timed out
64 bytes from 10.4.1.2: icmp_seq=1, time=20ms
310 bytes from 10.4.1.2: icmp_seq=2, time=20ms
556 bytes from 10.4.1.2: icmp_seq=3, time=20ms
802 bytes from 10.4.1.2: icmp_seq=4, time=30ms
Warning: Driver can't set multi-cast mode
recvfrom: Operation timed out
64 bytes from 10.4.1.2: icmp_seq=6, time=20ms
310 bytes from 10.4.1.2: icmp_seq=7, time=10ms
556 bytes from 10.4.1.2: icmp_seq=8, time=20ms
802 bytes from 10.4.1.2: icmp_seq=9, time=20ms
Warning: Driver can't set multi-cast mode
recvfrom: Operation timed out
Route - dst: 0.0.0.0, mask: 0.0.0.0, gateway: 10.8.254.254
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
Sent 16 packets, received 8 OK, 0 bad
PING server 10.4.1.34
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
Sent 16 packets, received 0 OK, 0 bad
PASS:<Ping test OK>
EXIT:<done> Any ideas? Is there a simple socket-litener-echo test program, and if so, what is it called and what port does it listen on? And I'm still waiting for my USB Blaster rev. B (sent in the order for the "free" upgrade back in October), however, I'd like to note that I've had no problems with the MasterBlaster.