It's Alive!!...or should I say...It's Online!!
CassLan
Posts: 586
It was surprisingly easy to get it serving a simple modified version of Tim's Web Page Demo.
http://spinneret.cassidydevelopment.net/
Rick
http://spinneret.cassidydevelopment.net/
Rick
Comments
Any chance you can post your code, I'm struggling with it here.
OBC
I just changed MAC / IP Settings / Port # (See Pic)
Also I changed the HTML (See Pic)
I haven't fully tested it yet, but it seems to work.
Use at your own peril.
All your inputs must be named "0" thru "9". Then use the VarExists[] and VarStr[] arrays to access them.
Bean
http://74.5.62.253
Thanks!
OBC
OBC
Anyway, many ISP's block serving on Port 80, try a different port.
In effect, this would also be where a filename would be placed...ie "blah.com\index.htm"..etc
So, this would be the first place to start to serve a specific file from the SDCard?
We have some limitations because we can't easily support long file names on the SD card when we use FAT format. I just made all of my web page files fit in the 8.3 length with all caps, and it works fine so far.
My code also uses my DHCP code to get the IP/gateway/subnetmask info, so the only thing you need to do is set the MAC address and load appropriate files into the SDcard.
I was going to look at replacing my simple GET request parsing with whatever Bean has provided. I just haven't been home yet to take a look.
Maybe we should consider using a standard file on the SD card to hold MAC address and any other required network-related properties. That way, the programs would not have to be changed on a user-by-user basis. And everyone's application could look for the same file which (I hope) would be less confusing.
Call it something like address.txt . It can be a standard text file. The first line could contain the MAC address. The second line could contain an IP address or be blank or contain "DHCP" or something similar to indicate it should use DHCP. This way, you set a specific IP if you need on (which is good for web servers, certain control issues, etc.).
I also want to work on code to do METHOD="POST".
Bean
173.67.187.91
Should see a page titled "Bean's Hardware Web Server". If it doesn't work, that means fios is blocking my port 80 and I'll have to pick a different port. You should see a checkbox next to the word "LED", if you would check that checkbox and press the submit button, I can check to see if it cames on.
Thanks, and let me know ASAP.
Bean
Re: I read you loud and clear in Nova Scotia , Canada
===================================
Bean's Hardware Web Server
This is a test from Bean's Hardware Web Server.
LED OFF
Filename is
LED:
Response after I submitted:
Bean's Hardware Web Server
This is a test from Bean's Hardware Web Server.
LED ON
Hello Bob from Halifax%2CNS. Canada
Filename is
LED:
Name:
City:
Name:
City:
Bob, Thanks alot. I had heard that FiOS had opened up port 80. I guess they did.
Bean
Bean:
'
I can get to Your Bean's Hardware Web Server
'
This is really cool if it is coming from Your Spinneret!
(At least on my internal network.) --
OBC
http://forums.parallax.com/showthread.php?p=955499#post955499
It now handles symbols correctly.
Bean
Thanks everyone for sharing all your efforts. I'll make sure and post any useful additions I might make (I'd like to stress the "might" part).
I'll probably enter the contest mainly to get feedback from all of you.
Okay, I'm now in "watching the LED" mode.
Duane
Do you have "forwarding" setup in your router?
OBC
Edit: OBC our posts crossed paths.
Welcome, could you post the IP of your WAN router, the 192.168.0 subnet is your internal network - all of the 4 numbers should be different than the reserved subnet above. I'll try your embedded server then.
After you either do port forwarding for port 80 or a DMZ goto the following or your routers' admin page to get the IP.
http://www.whatismyip.com/
For example I am running on 192.168.194 but my corp wan IP shows as 148.*7.*7.**5
thank you
/michael
I changed the sections of Bean's code where ever he had
!!! CHANGE TO MATCH YOUR NETWORK !!!
I can access it from my computer. Of course it's connected to the same router so that doesn't tell me much.
I'll have another look. Thanks for trying.
Duane
Yes, you do need to setup forwarding, then provide your "external" ip address. You can find it at http://www.whatismyip.com
OBC
Connect Automatically, as Required
I think I have some more reading to do. I check back when I'm ready for another try. Thanks.
I just saw OBC's post thanks.
Duane
If you go into your router's configuration there should be s section called "Port Forwarding".
Go into that and set port 80 to go to your spinneret's IP address.
That should be all you have to do aside from giving us your router's internet IP address instead of any local address. 192.168.x.x is local.
Let us know when you get the port forwarding done and we'll try it again.
Bean
I'm unsure what to change in this part of Bean's code.
I just entered these changes into my Spinneret. What am I missing?
Thank you all very much for your help. You all were having so much fun, I wanted to join in. (Plus this could really help with my day job.)
I believe I have "Port Forwarding" set.
Duane
SetGateway should be the LOCAL ip of your router. 168.192.10.???
SetIP should be the LOCAL ip of your spinneret (168.192.10.20)
Nothing in the spinneret code should have your EXTERNAL ip address. The router handles that.
Bean