You are not logged in.

#1 2022-12-17 08:26:08

nibazshab
Member
Registered: 2022-08-25
Posts: 59

[SOLVED] How to use 'domain:port' instead of 'ip:port' ?

If I have two web page, and I can type "8.8.8.8:6800" to visit one on browser, and type "8.8.8.8:8800" to visit another one on browser

if I have a domain like "myweb.com"

How need i do can make I type "myweb.com:6800" to visit one, and type "myweb.com:8800" to visit another one ?


I have a domin "21xx.ga",my ip is "150.1xx.1xx.31"

150.1xx.1xx.31:11100 is Aria2 Service, I can use "150.1xx.1xx.31:11100/jsonrpc" to connect my Aria2 Service in Aria2Ng WebSite

150.1xx.1xx.31:11300 is a golang program  --> AList, I can use "150.1xx.1xx.31:11300" to visit it

How to do, I can use "21xx.ga:11100/jsonrpc" to connect my Aria2 Service in Aria2Ng WebSite and use "21xx.ga:11300" to visit AList ?

Last edited by nibazshab (2022-12-17 10:16:18)

Offline

#2 2022-12-17 09:20:16

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] How to use 'domain:port' instead of 'ip:port' ?

What?
Yes?
As long as wherever you type that can resolve domains, they're interchangable.

But 8.8.8.8 has 8800 filtered, so maybe instead of trying some generic and obviously false nonsense, please explain what you're actually, exactly trying to do.

Online

#3 2022-12-17 09:37:01

nibazshab
Member
Registered: 2022-08-25
Posts: 59

Re: [SOLVED] How to use 'domain:port' instead of 'ip:port' ?

OK, i update the content of the first post

Offline

#4 2022-12-17 09:57:23

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] How to use 'domain:port' instead of 'ip:port' ?

Visit with what?
Again: as long as whatever interprets the URL resolves domains, you can use them like IPs
"localhost:631" and "127.0.0.1:631" in your browser will do the exact same thing (access the cups server)

It's still not clear what your actual question is.
What *exactly* are you trying to do and how *exactly* does it fail?

Edit:

getent ahostsv4 2155.ga
nslookup 2155.ga

Last edited by seth (2022-12-17 09:59:41)

Online

#5 2022-12-17 10:03:27

nibazshab
Member
Registered: 2022-08-25
Posts: 59

Re: [SOLVED] How to use 'domain:port' instead of 'ip:port' ?

Now i use the true information to describe my qustion at the first post

Offline

#6 2022-12-17 10:06:24

seth
Member
Registered: 2012-09-03
Posts: 60,805

Re: [SOLVED] How to use 'domain:port' instead of 'ip:port' ?

You're missing the point, your WAN IP is completely irrelevant to the question (and you might want to redact it again)

Online

#7 2022-12-17 10:15:54

nibazshab
Member
Registered: 2022-08-25
Posts: 59

Re: [SOLVED] How to use 'domain:port' instead of 'ip:port' ?

I am a fool !!!

I should use HTTP but not WebSocket !!!

I have no probmen now

Offline

Board footer

Powered by FluxBB