connect to server script on xampp - windows

I have a remote Windows server 2008, and install xampp on the server. I write a server script, and on the server, I can invoke the server script with http://localhost/fire/myfile.php
My question is: how do I invoke this script from another computer? If the IP address of Windows server is 192.168.1.1, is the URL to invoke the script http://192.168.1.1/fire/myfile.php?
But the URL doesn't work.

If your other computer is in the same network, your attempt will work. Otherwise, if it is outside of your network you cannot access your PHP-File by an internal IP-Address.
In that case you have to use your WAN Address, or you could set up a DNS on your WAN-Address and redirect all incoming requests from port 80 (or the port you want to use) to your internal IP-Address on your computer running xampp.

Related

Filezilla server retrieving directory listing error

I’m trying got configure the filezilla server. I’m running inside a virtual machine of windows 10 where I have installed the filezilla server.
First error I had was “Server sent passive reply with unroutable address” in the client filezilla. Using server address instead.”. What I did to “skip” this error is go to filezilla server and configure passive ports to the range of my ports I will use for ftp 7000-7001. In “Use the following host” I entered my ISP IP, world wide my public address. In the router I configured port forwarding to the port 7000 the ip 192.168.98 that is the address of the windows virtual where is the filezilla server but now I have the error “retrieving directory listing” in the client filezilla.
In the client I also used trying to connect insecure but nothing. Anyway, I don;t want the insecure way because the ftp will have access from systems they don’t have such options. I want all the configurations to fix are made to filezilla server nothing with the client.
What can I do to fix the filezilla server?

SSH connect from local windows VM to Azure windows VM

I want to have a SSH connection from my local windows machine or VM on my computer to Azure windows server VM. I tried Cygwin and Putty but both of them gave timeout connection. I used public ip address and opened port 22 on Azure VM.
I will appreciate if some one can give me any hints or links.
There are multiple firewalls that can be the reason here. Fist you must have a rule on the server to allow incoming SSH requests (port 22). Then you need to configure the NSG(Network security group) to allow incoming on port 22. If it still doesn't work, you need to verify that you are allowed to do an outgoing SSH request from your computer.
Thanks for suggestions, I found the problem which was the host machine IP address(ipconfig) (where is a local VM inside domain) was different from the IP address that communicate outside the domain to internet. I was set in NSG of Azure VM to only accept this IP and because of that it gave time-out error. After changing the IP it works.

Access from client to server on same machine by browser

I have a simple question about client-server , please help me to solved it :
Assume that I have :
Server A (Using apache http server )
Web application B ( Also using another apache http server)
A and B is located on the same machine
If on local browser , I access to a page from B ,and this page send a request to A :
$.ajax { url: localhost:8080/service_from_A,..}
It's work nomarly
And on browser from another machine I access to page from B ,and now ,the ajax request is failed because url is localhost of another machine
So , how can I access from another machine with above ajax calling (url still is localhost )then it could be exactly redirect server A . I do not want to fix IP address in ajax call
On the computer running your Apache servers, get it's local IP address. For a Windows computer, you'd open up cmd.exe and type in
ipconfig
Then look for something that says "Wireless Adapter" if you're using a wireless connection or "Ethernet Adapter" if it's wired. Now look for the part that says "IPv4 Address" and read what's next to that.
I'm going to be assuming your local IPv4 address is 192.168.1.82
In your AJAX script, replace "localhost" or "127.0.0.1" with the IP address of your server host computer, in this case: "192.168.1.82".
Once you've done that, try connecting a computer that's on the same LAN (Local Area Network) as your host computer using the IP address of the host. To allow a computer from a different LAN to connect to your server, you need to do something called port forwarding.

setting up home ftp server using filezilla

I googled, followed all the instructions but still stuck, and unable to create a home ftp server.
My internet is from dsl modem -> vonage router -> wifi router
FileZilla server ip is 127.0.0.1 and it works fine when tried from command prompt. But I need it to be accessible from outside.
I enabled ftp on wifi router's web settings page using virtual server setting.
I am stuck at this point, I don't know what else to do further. Any help is greatly appreciated.
Also, if you are planning on accessing your server remotely, (not in your network) you will have to enable port forwarding on your router. (Use the ip address of the machine running the server and use port 21) Otherwise, you only be able to connect while in your LAN.
This pretty much summarizes your needs(via lifehacker.com)
If you're FTP'ing across your home
network (like from your upstairs PC to
your bedroom PC), you can reach the
server by using its internal network
address (most likely something like
192.168.xx.xx.) From the command line, type ipconfig to see what that address
is. If you want to log into your FTP
server over the internet, set up a
memorable URL for it and allow
connections from outside your network.
To do so, check out how to assign a
domain name to your home server and
how to access your home server behind
a router and firewall.
Original Article
How to assign a domain name to your home server
How to access a server behind a router and firewall
You need to be able to access your internal network from the internet. Consider using a service like dynDNS if your router supports it.

Red5 Problem with connecting from remote client

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 )

Resources