Making a link to a different port

R

Ryan Garnier

Maybe this is not the correct newsgroup for this question, but I didn't
find another suitable one:

I have Apache webserver, and In a webpage I have to make a link to
another port in my PC (not the one configured to the webserver). I don't
know how to create it:

For instance:

http://localhost:8888/.../file

<a href="localhost:8888/.../file"></a> doesn't work

Thanks in advance
 
R

Roy Schestowitz

__/ [Ryan Garnier] on Monday 31 October 2005 12:13 \__
Maybe this is not the correct newsgroup for this question, but I didn't
find another suitable one:

I have Apache webserver, and In a webpage I have to make a link to
another port in my PC (not the one configured to the webserver). I don't
know how to create it:

For instance:

http://localhost:8888/.../file

<a href="localhost:8888/.../file"></a> doesn't work

Thanks in advance

That file should be in your public space, so you should be able to address it
using, e.g.:

<a href="http://example.org:8888/.../file">file</a>

This assumes that your Web server is set to permit connections to that port.
In Apache, I have one such server that makes images public on port 8081.
Bear in mind that what you do might be dangerous. What are you trying to
achieve?

Roy
 
D

Dylan Parry

Sitting in the departure lounge at alt.html, Ryan Garnier got bored and
wrote:
<a href="localhost:8888/.../file"></a> doesn't work

You need to have the "http://" in the above link.
 
R

Ryan Garnier

Thanks for answering!

I use Apache, in port 80. Then I have Helix Server for streaming media,
in port 8888.

When I create a normal link in a webpage I use:

<a href="./link.html">Link</a>

But now I have to specify the port number (8888). If I do
<a href="http://localhost:8888/file>Link</a>

it doesn't work, of course. People who visit my page view this link as
localhost. I don't know how to refer to my own IP without specifying
localhost.

Thanks and sorry for my English.
 
R

Roy Schestowitz

__/ [Ryan Garnier] on Monday 31 October 2005 12:24 \__
Thanks for answering!

I use Apache, in port 80. Then I have Helix Server for streaming media,
in port 8888.

When I create a normal link in a webpage I use:

<a href="./link.html">Link</a>

But now I have to specify the port number (8888). If I do
<a href="http://localhost:8888/file>Link</a>

it doesn't work, of course. People who visit my page view this link as
localhost. I don't know how to refer to my own IP without specifying
localhost.


Well, by serving people a page with "localhost", you give no indication of
where the Helix Server actually resides. "Localhost" would be useful if
you gave the user a tool for investigating/probing his/her own
workstation/network properties.

Have you tried specifying an IP address? Have you disabled firewalls for
port 8888? If you need a proxy to access your page from London, let me
know. I have an open proxy (password-protected) on my server.

Thanks and sorry for my English.

Your English is great. Haven't spotted anything awkward...

Roy
 
R

Ryan Garnier

I thought writing the link with my IP address, but my ISP provides me a
dynamic IP, so it wouldn't work always.

A solution may be obtaining my IP and making the link with that IP.

Thanks again and regards!
 
R

Roy Schestowitz

__/ [Benjamin Niemann] on Monday 31 October 2005 13:40 \__

Or VPN (Virtual Private Networking)?

The ISP can sometimes make exceptions and have you allocated the same IP
address every time (reserved?).

I can recall a user who needed the same IP address assigned to him for
whatever reason he states. He was retired, so I question the genuineness of
his needs, at the way he put it. Then again, he apparently controls the
newsgroups in the UK, so there might be justification.

Roy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top