S
S
sazer2019-05-04 12:43:14
linux
sazer, 2019-05-04 12:43:14

Can you please tell me how to make a Linux application access a URL when it only supports IP addresses?

Hello.

You need an application that can only work with IP:PORT addresses to access the address https:/xxx.com/dasdasd/dasdasd/dsasasd?

dsdasdasdasda connection from https:/xxx.com/dasdasd/dasdasd/dsasasd?dsdasdasdasda ?

Tried this code:

$ mkfifo proxypipe

$ mkfifo proxypipe2

$ nc -l 5000 -k > proxypipe < proxypipe2 &

$ while true do; openssl s_client -connect www.google.com:443 -quiet <proxypipe> proxypipe2; done

did not work, connect also reports that aress is unknown and other bugs.

I'm looking for the easiest and most reliable way.

Thank you !

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2019-05-04
@q2digger

Nginx on localhost and in it redirect wherever you want.

R
Ruslan Fedoseev, 2019-05-04
@martin74ua

And nothing, that on IP:PORT and https://url/path are at least different protocols. Can your application handle the https protocol?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question