I've got web2py working so I can access my webapp from my computer locally. I also have tornado working and listening on port 8080 as I want to use websockets.
I've chosen the "Public (0.0.0.0)" option when firing up the server and listening on port 8000.
I've set up port forwarding on my router from port 80 to port 8000 using the "other" function of the guide p.58.
When typing "what is my ip" it seems to be an IPv6 IP so no idea if that matters but I tried to check if I've done it correctly by going to this site http://www.ipv6proxy.net/index.php and trying to navigate to my IP address that google spit out when I typed "what is my ip?" but get a couldn't connect to the host message.
Any idea what I'm doing wrong?
I'm relatively new to this.
To explain motivation I simply want to do a dry run of the website and websockets online. I think there are a tonne of security risks associated with what I'm doing and this is simply a learning exercise for me and do not intend to host the website this way. I do want to understand how I would do this though.
EDIT
I'm running ubuntu 14.04 LTS
Related
We are building php web application while i am a designers and my friend is developer we work on different pcs we want to test the file by runnig on localhost on both of our pc how can we reach it. I have gone through some of concepts in internet but didn't get proper info.
Yes. You need to create a firewall rule to allow access through whatever port you are serving on, probably 8080.
Here is how to create an inbound port rule in windows
Then they should be able to access your server by simply using your ip
forward port 80 TCP/UDP on router (OPENED)
port 80 TCP/UDP on firewall (OPENED)
httpd.conf - httpd-xampp.conf (EDITED)
But when I try visiting by my ip I get nothing on browser,
its working on LAN and WLAN not on internet
What I should to do?
there better way to make PC as webserver?
which is best OS for server?
Some ISPs won't allow port 80 to be connected to from outside your home network as an attempt to block people from hosting a website from their home network. Try setting your server to listen on a different port (85 is generally not in use) and you should be able to connect to it.
As for your other question, in my opinion, Ubuntu (or any flavor of Linux) is a good OS for a web server. Ubuntu is free and easy to use and there are plenty of resources online if you have any problems.
I'm using mini mac and tomcat 7.0.29,
I want to host it from my computer so other computer outside the network could connect to it.
I have set the port forwarding into 80 both start and end.
set static IP on my mini mac.
however, after getting the router IP address from ip2location.com and access to it from external computer,it display "it works!" screen, not the tomcat home page. this page is also displayed when I use localhost instead localhost:8080. Here is some snap shot that I've taken from both computer
http://i182.photobucket.com/albums/x38/DNK90/staticIP.jpg
http://i182.photobucket.com/albums/x38/DNK90/portforwarding.jpg
And this one is from external computer
i182.photobucket.com/albums/x38/DNK90/tomcat.jpg
anybody who know how to access directly to the localhost:8080 through router IP, tell me ^^
Well the problem is, that on port 80 the apache is being called for an answer. You will have to configure your NAT a bit different. Either you find an option on your router to forward every call to port 80 to port 8080 on your mac mini or you use ipfw (on linux machines you would use iptables). Try
sudo ipfw add fwd 127.0.0.1,80 tcp from me to 127.0.0.1 dst-port 8080
I do not have a mac in front of me right now, so this command is untested, but I think it will work.
Ps. Once I get home, I'll test the command and edit this post.
about 6 months ago I got into coding, and I've always wanted to start my own game just for fun on the side.
I have wampserver on my computer, and was wondering if that server could publicly host things on the internet?
You need to:
Make sure your server is available on the internet. If you have a router or firewall you may need to open it up.
If you want to have a domain name you need to register that.
If your ISP can give you a static IP address then ask for that.
Whether you have a static IP or a dynamic one then you can use a service such as DynDNS to link the domain name to the IP address.
Yes, you can use your WAMPserver to allow people to publicly access your site.
From some quick googling, I didn't find any instructions, just that it was possible.
I just put a wamp server up on a box in my house just for funsies.
Here is a wampserver forum post with links to the info you seek.
Here is the basic rundown though:
Open up your router to port 80 and forward it to the box you are serving on.
Get setup on a DNS server, I used freedns.afraid.org.
In wamp you are gonna set apache to use virtual hosts (this is in the link).
After that you should be cool.
So I have this issue. The issue is I am unable to connect to my red5 server from a remote client. I also have not found any tutorials on how to install red5 so that remote clients can connect to it. However, here is what I have done...
Inside My MXML Flex File I try to connect to the computers IP that the server is running on(My Server is running from within Eclipse). The line for connecting looks like this netConnection.connect(rtmp://192.168.2.12/myApp, true);
All that happens is after a lot of minutes go by, I just get NetConnection.Connect.Failed and there is no log being output by Eclipse. Almost like it never even registers the connection that the remote client is trying to make.
The other interesting thing is that I am ABLE to connect to my Red5 Server using a different computer within my local home network just fine. But only when it is remote I am unable to connect.
I have changed my Red5-web.properties file and added this...
webapp.contextPath=/myApp
webapp.virtualHosts=*, 127.0.0.1, localhost, 192.168.2.14, 174.122.104.3
The 174 one is my website where the Flex Swf Resides on.
I think maybe somehow my computer is not setup or configured to allow these remote connections and is rejecting them or something, I'm not quite sure why a remote client can't connect. Does anyone have any idas?
Your help is greatly appreciated.
You may uninstall the red5 and reinstall it.
When it ask you the server ip address type your server's LAN adress (192.168.2.* or 10.0.0.* whatever). This solved my problem.
In my opinion, if you have at least one domain name that you own, the best way for you to go is to set up an Apache Http Server to your server machine, and create subdomains for both red5, rtmp and rtmpt. Make the Apache handle your incoming requests, and decide their correct routing there.
In case you don't own a domain, or the previous way is too time-taking to set up and get it work, you should just make sure that the ip address you're trying to connect to is not an internal IP.
In your example above you are trying to connect from the client to a 192.168... address. If you try to connect to it from within your LAN, it works, since that ip there is registered to your machine.
But when you take your notebook to your neighbor, and using his internet connection to access your site and connect to red5, the client (flex application) will also try to connect to that 192.168..., and your neighbor's router has no idea about your LAN, probably it doesn't have such an internal IP address either, but SURELY cannot connect to your server.
So instead of using 192.168... in your connection string, you should try using your external IP address (the 174... one):
netConnection.connect("rtmp://174.122.104.3/myApp", true);
This will work always, as far as you have a static IP address.
Also make sure, that your red5 server is accessible over the 80 port, or if it's not, specify the correct port number there.
For that you can do following thing...
These steps I took and it's solved my problem...
1.During the installation, you must have given ip 127.0.0.1 (localhost) and port :5080
2.firstly open the port (5080 and 1935) on firewall.
Visit http://windows.microsoft.com/en-in/windows/open-port-windows-firewall#1TC=windows-7
3.Now to go red5->conf->red5.properties and open this file in notepad++. (or any other editor)
4.repalce http.host and rtmp.host ip with your ip address (ipv4)
5.start the red5 service.
6.Now check http://yourip:5080
It will start working, and you can access it from other system also (in the same network Obviously )