Asked — Edited
Resolved Resolved by thetechguru!

Regular And Custom Http Server Controls

Hello,

I have ventured into the HTTP Servers, both regular and custom and was really impressed. Pretty cool stuff !

First question I have is that I was able to successfully connect to the regular server page with my Android Phone and as my project is fairly large, I couldn't scroll through the whole screen of the project. Would I be correct in assuming that this is a limitation of the Samsung Galaxy S4 Screen Size?

I noticed in the web server control that there are two IP Addresses the show in the control. The first one is the regular IP Address and the other one is the remote port for accessing server outside of my network. Then I noticed when I was connected that I have clicked on the connection button that there was yet another IP Address. The IP Address in the control screen along with the remote address is an IP Address that is already used on my network. The IP Address I get when I connect on connection button shows an IP Address that is not used on my network and this makes sense. Not sure how these IP Addresses are all related. We have two different IP Addresses and a remote address.

Also, which IP Address is the one I should be forwarding? Is it the address in the drop down box when I click on connection or the one of two that shows up in the main control box? Also, would I be correct in assuming that I can change the port number to one that is currently not used on my router? Also, what are some common IP Addresses that I could use that aren't currently used and would be safe to use.

I can view the web server page on my Android phone on my local network but can't access yet outside of my network. Tried port forwarding both IP addresses, with a different port number than 80 and no luck. This is where I think I might be using port numbers that are already used?

With regards to the custom web server, I looked at the example in the scripts folder and got it to work somewhat. The reason not everything worked is because I am using the Adventure Bot for my project and I am sure the author of the example custom web server used a different robot, etc. I was wondering if anyone has the example HTML code for a basic HTTP Custom Server? Example code is always great for learning purposes. I did check out the question mark for the custom web server but there was no examples. Any help on creating a custom web server would be great to help me understand what is going on with it. TheTechGuru is gracious enough to volunteer to help me out when he gets back from vacation as he wants to do some similar things with his robots that I want to do. Thought I would learn as much as I can before he gets back so I know what he is talking about somewhat?

Thanks for all the help and what a great community ! :):)


ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

#65  

Alan,

Thanks much ! I forgot to modify the page with the external ip address. I will give that a shot.

One other quick question. The page works perfectly within my internal network, but I noticed that when using google chrome on my android phone that the video will go blank after an interval of time and I can get it back by swiping down with my finger inside the video window. Is there some kind of setting I need to change in google chrome?

I am coming along well on my create 2 security robot and should be posting something soon. Waiting for parts, etc.

Again, thanks much Alan !:):):):)

#66  

I am not aware of any settings. I have never watched the MJPEG for more than a few minutes so haven't seen this. I'll play around with it some and see if I duplicate the issue.

Alan

#67  

Hello Alan,

Just wondering if you had a chance to try out the foscam custom web page issue I mentioned in the post above. On Android phone camera view disappears after 2 to 3 minutes or so and won't come back unless you swipe down with your finger in the video frame window. Seems to be a refresh issue maybe. Thanks for your help ! Rick