Quick question about ports on a web address [closed] - websocket

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed last year.
Improve this question
I got a little confused about sockets.
In an address like:
https://localhost:5000/
...where I am running a web server during development, I know that the HTTPS translates to the local port 443, so the question is, what is the 5000 port number in that address?

HTTPS defaults to port 443, unless otherwise specified. In localhost:5000 you are explicitly specifying a port, so it's port 5000. Only https://localhost would be using port 443 implicitly.

when you request localhost:5000, the browser will go to the webserver on the localhost, but on port 5000, this means that if your webserver is setup to work on port 5000 or one of it's virtual hosts are setup to work on port 5000 you will get a response,
Read this line very carefully thrice, the browser will go to the webserver on the localhost, but on port 5000,
so , answer to the question what is the 5000 port number in that address? is that the webserver will try to find a response from port number 5000 , it will not go and find response on any other location .
read more about port numbers here
I hope it makes sense to you !
Thanks !

Related

Add port to 127.0.0.1 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
How can I add a port to 127.0.0.1? I have 127.0.0.1:5984 open but want to open another one. Any idea? As A head's up I'm new to computers. I'm on a Mac running OS X Mavericks. I'm also on Xfinity.
Edit: I am having a port conflict while attempting to use CouchDB, how can I resolve this?
A port is a listener for a specific protocol such as tcp or udp. In order to open a port. You need a program or service to listen on that port. For example, by default Skype will listen on port 80.
Please read the wikipedia page for a basic overview or what a port is.
In computer networking, a port is an application-specific or
process-specific software construct serving as a communications
endpoint in a computer's host operating system. A port is associated
with an IP address of the host, as well as the type of protocol used
for communication.
http://en.wikipedia.org/wiki/TCP_Port
Edit: To answer actual question:
Unavailable Port
Problem
$ couchdb Apache CouchDB 0.9.0a747640 (LogLevel=info) is
starting. Failure to start Mochiweb: eaddrinuse {"init terminating in
do_boot",{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{erl_eval,do_apply,5},{erl_eval,exprs,5},{init,start_it,1},{init,start_em,1}]}}
Solution
Edit your /etc/couchdb/couch.ini file and change the Port setting to
an available port.
Excerpt from:
http://wiki.apache.org/couchdb/Error_messages
You can change the port CouchDB listens on by editing its local.ini file (which is in /usr/local/etc/couchdb by default). Under the httpd section, uncomment the port entry and change its value to the port you want to listen on (5983 in your example).

Connecting To port...Could not open connection to the host, on port 23: Connect failed [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I could not make the telnet port command execute.
I did what was told in this link.
the snapshots of my cmd are:
what else shall i do to execute these commands?
The telnet command connects to the host you specify as the first argument on the port you specify as the second argument (or 23, if you only specify a single argument).
When you tried to execute telnet port, it tried to connect to the server port on port 23. Since there is no server with the address port (unless you specified it in your pc's hosts file), telnet couldn't connect to it.
I'm guessing the second command failed, because www.udacity.com doesn't accept connections on port 8080 (the second argument of the command).
I don't see any instructions in the link you provided.
EDIT: If you're trying to connect to localhost, use telnet localhost (to connect to port 23) or telnet localhost <port> (replace <port> with the port you are trying to connect to).
I also faced same problem. Solution, after adding feature for telnet server, a new service is added for this but is in by default disabled state. So make sure service is running and in non disable mode.

How we can run two instance of Apache Http Server on same machine Windows 7 [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 days ago.
The community reviewed whether to reopen this question 7 days ago and left it closed:
Original close reason(s) were not resolved
Improve this question
How we can run two instance of Apache Http Server on same machine Windows 7
I want to configure 2 apache http servers and 3 tomcat server on window7 machine.
Currently I have done configuration with 1 http server and 2 or more tomcat server, but unable to do configuration of 2 http servers on same windows machine.Whenever I start second time of http server(2nd instance) then is says like this:
httpd: Could not reliably determine the server's fully qualified domain name,
using 172.17.124.181 for ServerName (OS 10048)Only one usage of each socket
address (protocol/network address/port) is normally permitted.:
make_sock: could not bind to address 0.0.0.0:80 no listening sockets available,
shutting down Unable to open logs
Please let me know how I can I run two instances of HTTP servers on same windows machine.
Help is appreciated.
Thanks in advance.
Copy your current Apache files to another folder and modify the httpd.conf file.
Change two things:
ServerRoot: give the path of the new folder where you have copied your apache files.
Listen: Give a new port number other than 80. It will be better if you give a port number larger than 1024.
Make sure you have not set the environment path for httpd.exe. if you have just remove it.
Now in the command prompt navigate to the bin folder of new server. then type the following command.
httpd.exe -k install -n "New Apache" -f "C:/path/to/httpd.conf"
(Of the new server).
Once you execute this command successfully, you'll find a new service named "New Apache" in services.msc. Start that service and in browser try to run the server with the new port number that you have given in the httpd.conf file of the new server.
Mostly that should work. But in case it doesn't execute the following command
httpd.exe -k config -n "New Apache" -f "C:\path\to\httpd.conf
Hope that helps!
You'll have to run the 2nd Apache instance on a port other than port 80. Find the Listen directive in the httpd.conf file for the 2nd Apache instance and change the port.
A 'Listen directive' tells a server to accept incoming requests on the specified ports, and a server can also be made to listen to address-and-port combinations.
If you specify a port number in the Listen directive, the server listens to that port on all interfaces. If you specify an IP address as well as a port, the server will listen on that port and interface.
For example, if you were to make the server accept connections on both port 80 and port 8000 on all the interfaces, you could try this:
Listen 80
Listen 8000
... but if you want to make the server accept connections on port 80 for one interface (e.g. 198.0.1.1), and port 8000 on the other (e.g. 198.0.2.2), you would write something like this:
Listen 198.0.1.1:80
Listen 198.0.2.2:8000

Can't block inbound traffic on Windows 2008 Server using advanced firewall settings [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a problem with windows 2008 advanced firewall settings. When i try to block inbound traffic it's not working correctly.
For example: I made a rule for inbound traffic:
Local port: All ports
External port: 80
Action: block
If I open a webpage using internet explorer, the website is opened just fine, while it shouldn't open because I blocked the inbound traffic on port 80
Is there a reason for this? Am I doing something wrong?
Declare the rule in the OUTBOUND traffic.
The way you have it configured its not allowing someone on your network to connect your
port 80 (web server).
So if you want to forbid browser navigation you have to block outbound traffic on port 80
PD: You should check also what are your default settings for inbound/outbound traffic. If you have both to permit by default then what is happening is what I explained before. You outbound traffic is permited so you can browse the web, and your inbound traffic is permited but you have a rules blocking port 80, so no one can telnet your machine or get information from your webserver in port 80 if available
If your requests are local to the webserver (from 127.0.0.1). AFAIK no firewall rule is active at all (with windows firewall) if the request comes from the same computer. All the ports are open even if you set rules to block them,.
So to try your rule you have to make a call from a different ip. There are many online tools, for example: http://ping.eu/port-chk/

WebSocket live server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Does anyone happen to know of any live WebSocket servers which are accessible over the internet and listen on the standard ports (i.e. 80, and 443). Anything will do - an echo server, for instance.
Thanks
Update: Kaazing/Tenefit appears to no longer be hosting the WebSocket echo server at websocket.org. An alternative echo server is available at ws.ifelse.io instead (running https://github.com/jmalloc/echo-server and hosted by Mark Thomas)
Your best bet is going to be Kaazing's websockets echo server: http://websockets.org/echo.html. It's easy to remember, they keep it up to date and running.
ws://echo.websocket.org (port 80)
wss://echo.websocket.org (port 443)
EDIT:
If you want to use wss:// (443) visit the site with https:// or else use http:// for ws:// (80).
EDIT: WebSocket.org is dead.
You can easily set one up yourself using this simple python script:
https://gist.github.com/jkp/3136208
There is a typo you have to fix: s/messsage/message/ and if you want it to listen on anything else than localhost replace "localhost" with ""
Can I ask why do you need the standard ports?
If not, you can always use my server, look at http://www.achex.ca to get more info.
Achex
P.S. I will move the server to port 80 in a month or so on address ws://ws.achex.ca

Resources