How can I use my xampp server so that everyone from the outer web can acces it - webserver

I'm now having problems with this for over a week.
I'm running a minecraft server on my computer. Therefore I used no-ip.org to have a "fixed" ip. I forwared all ports for the server and my friends can access without any problems.
Later I thought I could make a little Homegape for statistics and stuff. So I installed xampp. I forwarded the ports 80, 8080, 8000, 7171. I (and everybody else in my local network) can access it via the no-ip.org address. But nobody else! (And I want to repeat that people can reach my computer over the minecraft port (25565) and no other port!)
How can I fix that problem? I'm pretty sure there is a simple node in one of the config's which I haven't seen yet. I googled for days. So I found out that I should forward these ports. But that's all I could find.
My firewall is (for testing of course!) disabled!

Probably your firewall is blocking xampp or apache. If you are at windows 7, try to go to Control Panel -> System Security -> windows firewal > allow a program through windows firewall and then search "apache" or "xampp" and mark to allow public and private connections
Additionally you can try this also:
Launch "Windows Firewall"
Go to "Advanced Settings"
Select "Inbound Rules" in the left pane
Select "New Rule" in the right pane
In the New Inbound Rule Wizard, select "Port" as Rule Type, then click on "Next"
Select "TCP and put "80" (and any other ports you want to open) in "Specific local ports", then click on "Next"
Select "Allow the connection", then click on "Next"
Select the network location where the rule should apply (select them all if you're not sure), then click on "Next"
Give a name and an optional description

I solved the problem.
I am using cox and they are blocking port 80. Well now I am using https and port 443 and everything works fine!

Related

Change Listen Address Web Logic

I have a server running on weblogic 12c. But it is running on localhost:7001/myapp/.. I can run it by http://localhost:7001/myapp/... or http://127.0.01/myapp/... But only on the computer that weblogic is installed. I need to access from other computers. I have changed the Listen Address from localhost to my public IP, but when i did it, my server did not run anymore, it shows an error "Could not find lock file. Maybe the server is already running" something like that. I have already tried to delete the .lok file, but that did not work either. Tried to change the config.xml file, but that did not work either. Have this happenned to someone? How do I fix this?
I faced the same issue and below the answer, for stand alone Weblogic and even for embedded one, You want to change Listen Address, Just do the following steps:
If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).
In the left pane of the Console, expand Environment and select Servers.
On the Servers page, click the name of the server.
Select Configuration > General.
On the Severs: Configuration: General page, enter a value in Listen Address.
Click Save.
To activate these changes, in the Change Center of the Administration Console, click Activate Changes.
Not all changes take effect immediately—some require a restart (see Use the Change Center).
For (integrated weblogic only) on JDeveloper, open Application servers from windows menu, select Integrated weblogic, right-click on it, select Properties, select Configuration tab, Change hostname with the same IP address you put in Console
if your Weblogic server isn't production server, just ignore steps (1 & 7)
reference : https://docs.oracle.com/cd/E50629_01/wls/WLACH/taskhelp/channels/ConfigureListenAddresses.html
First you need to check what is running on 7001 port:
On windows use: netstat -ano|find /i "7001" it will give you something like :
TCP 0.0.0.0:7001 0.0.0.0 TIME_WAIT 1028
then you can kill that process using
taskkill /F /PID 1028 (java process started on 7001)
Now try to delete *.lok file from Domain/servers/AdminServer Path
and start admin server .
If you have nothing specified in listen address field it will listen on all the available network interfaces which can be check by ipconfig command on window
On linux use netstat -tulp|grep 7001 to find process
Did you see check if there is another application running on your public ip and the same port ?
Your Question is not at all clear. You say your server is running on a server and you can access it using the url http://localhost:7001/myapp/...
So that bit is clear.
Then you try to access your application from another machine. This where it gets confusing.
You say - "I have changed the Listen Address from localhost to my public IP, but when i did it, my server did not run anymore, it shows an error "Could not find lock file. Maybe the server is already running" something like that."
Why would your server stop running if all you did was try to access from a different machine ?
" The error could not find lock file " is usually seen when you try to start a server on a machine where there might be another server already running. But since your aim is only to access your already running server from a different machine you would do that using a browser, why start another instance ?
Could you throw some more light on what exactly you are doing and the result.
Few tips -
Check the listen address of your weblogic server from admin console.
Check if the server you are running weblogic has more than 1 ip. Run ifconfig or ipconfig to get the IP's

Netbeans & Eclipse hang when I attempt remote EC2 debugging via Xdebug

Already, I've checked at least 20 resources and am out of ideas:
I have a clean, remote Ubuntu EC2 instance, fresh from the AMI, having stopped only to install LAMP, phpmyadmin, and xdebug on it. Yes, I have configured my remote EC2 instance's php.ini file as follows:
Meanwhile, back on my laptop I have Netbeans & Eclipse installed. While I can get either to seamlessly upload and Run my php web app on my EC2 site (via SSH/SFTP) as soon as I hit "Debug" from either, index.php gets uploaded, a browser window opens, and then NOTHING HAPPENS. The page doesn't load, the Debug perspective doesn't open, breakpoints don't get triggered, nothing. Netbeans just hangs out saying "waiting for connection" whereas Eclipse just sits at the notorious 57% level (& yes, I toggled the xdebug.idekey before testing with Eclipse)).
So I tested xdebug's functionality on my server according to the instructions found here and here (both passed). I tried changing to port 9001 (in remote php.ini as well as in local Netbeans/Eclipse), I even tried launching this brand spanking-new EC2 instance with pretty much open Security group settings (SSH=0.0.0.0/0), but nothing seems to be working. I am out & out flummoxed, a self-confessed noob, and appreciative of any insight seasoned professionals in the community may have to offer.
Thanks,
Debbie
This feels like a networking issue to me. Port 9000 may not be accessible. The quickest way to test is to telnet to port 9000 on the remote system (if you have a telnet client installed that allows you to specify which port to telnet to). If the telnet attempt times out or is closed by the remote system you will see the error and this verifies that there is a networking issue.
I would check /etc/services to make sure that port 9000 is not reserved for use of something else. If port 9000 exists and is uncommented then something else is using the port and that services does not know how to respond to your request so it hangs.
I would do a netstat (lookup params to see "all" listening ports) and make sure the remote system is listening on port 9000. If you don't see port 9000 then the remote system is not configured to establish the connection.
If you are on a WIFI network then port 9000 may need to be port forwarded to the remote system using the internal cable modem configuration menu/utility. This is the scenerio I favor because I've wasted so much time solving this kind of problem with different software.
Good luck, you have more troubleshooting ahead of you and different questions to ask to resolve your problem.

Eclipse->Prefrences->Network connections

In eclipse network connection, i need to select 'Active Provider' as 'Native' and add some proxy entries. But i am unable to do so. There is nothing to add proxy entries and its not picking the entries from web browser.
Pls help.
Thanks
Eclipse's Network Connections is depends on your Local Area Network (LAN) Settings.
For Windows, go to Control Panel -> Internet Options -> Connections -> LAN settings and add address and port of your favourite proxy server, then restart your Eclipse.

Can eclipse RSE connect to a local port (ssh tunneled)?

I am using eclipse with RSE, and it works well connecting to my linux server when I am in the same network, but as the server is behind a firewall with a gate entry, I need to make a ssh tunnelling when outside its network.
I have not find a way of adding the local port where I have the tunnel to the host name nor in other places.
Is it possible to connect to localhost:port with RSE?
Finally I found it.
You can not add a port in your initial connection configuration, so the way of doing it is to create a connection to localhost and give a proper name (in order to be able to map more ports later)
Then you will see your new resource
Your new connection is done in port 22 but you can change this and the name for the connection in the following steps.
For changing the user name, click in the resource ('remote_server_1' in this example) and in the properties (the bottom panel) you can change the default userID.
Now the next step is to change the port. For doing that you need to click either in the node Sftp Files or Ssh Shells
Go to the port and and change it to the local port where you have previously forwarded your ssh connection.
And that's it!, click now in the arrow in My Home or Root and you will be pronpted for your credentials:
PD:
Just in case you have the same problem for connecting remotely with eclipse, this is what I have installed, the dsdp/tm v 3.2
installing the RSE was a bit of trial and error because you need to unselect some packages not related with your architecture like winCE and others.
These are the packages that I installed in the plugin:
You can also right click on SFTP files -> Properties -> Subservice -> Port

Virtualbox guest OS - Connect to local network but not internet

I am using VirtualBox in Ubuntu with WindowsXP as the guest OS.
In Ubuntu I have a PHP/MySQL server running as localhost and with the VM network set to bridged I am able to connect to localhost from the VM.
However, I would like to limit the VM Guest to be able to continue connecting to localhost but NOT be able to connect to the internet.
This is a security thing - I don't want to have to install firewalls and virus checkers in the VM just to keep it safe - It is being used as a testing platform and only needs to connect locally.
Does anyone know how to do this? Iv spent time searching, but all I find are articles etc that show how to connect the VM to the internet, exactly the opposite to what I want to do.
Okay, so that doesn't exactly do what I needed, but this is:
1) Networking for VM set to 'Host Only'
This creates a new adapter called vboxnet0
2) On the command line 'ifconfig vboxnet0'
This should give you a bunch of stuff, but in there somewhere is an IP address. Make a note of it.
3) Control Panel->Internet Options->Connections Tab->LAN Settings
Make sure both items in automatic configuration at the top are NOT checked then click 'Use a proxy server for your LAN'
Enter an imaginary address and click 'Advanced'
At the bottom of the next window, in the Exceptions panel, type the address that you got from part 2 (ifconfig vboxnet0)
Click all the okay buttons to get out.
4) In all browsers the Ubuntu localhost can be reached by:
http:// [IP from part 2]
Phew! I think that did it. I hope this might help someone else.
M
Ill answer this myself just in case anyone else wants to know:
In the Windows guest:
Control Panel->Internet Options
Select the 'Connection Tab'
Make sure that 'Automatically detect settings' is off
Click 'LAN Settings'
Check 'Use proxy server' and add an IP that does not exist
Click 'Advanced'
Add your localhost IP to the section at the bottom: 'Do not use Proxy server for.....'
Your browsers should still be able to reach localhost for testing, but cannot reach the internet. Since there seems to be no connection Id hope that it works both ways (and I'm happy for someone to point out if that is not correct)
Cheers
M