Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

How to find the connected client Local IP? (For Port Forwarding)

Open jamiekarvans opened this issue 1 year ago • 3 comments

hi i want to use use port for example 8080 but i want to hide my ip while doing so, so i have bought a VPS and installed V2Ray with Xray core on it, now i connect to my vps using v2ray but how to port forward the data from port 8080 on VPS to the client connected local ip? is there any Virual ip adresses for each client or dhcp ip? anything? hwo to find it and forward data to the ip?

jamiekarvans avatar Feb 25 '24 20:02 jamiekarvans

the logs of the V2Ray server, which include information about the connected clients, including their local IPs. Look for lines in the logs that contain the "inbound" tag, as these lines indicate a new connection from a client. The local IP of the client will be listed next to the "LocalAddr" tag. Here's an example of what you might see in the logs:

2022-08-10 12:34:56 +0800 CST m=+1234.569: [inbound] new connection from 19.168.1.100:5000

In this example, the local IP of the connected client is 19.168.1.100.

us254 avatar Feb 26 '24 14:02 us254

Perfect, thank you.

On Mon, Feb 26, 2024, 6:12 PM us254 @.***> wrote:

the logs of the V2Ray server, which include information about the connected clients, including their local IPs. Look for lines in the logs that contain the "inbound" tag, as these lines indicate a new connection from a client. The local IP of the client will be listed next to the "LocalAddr" tag. Here's an example of what you might see in the logs:

2022-08-10 12:34:56 +0800 CST m=+1234.569: [inbound] new connection from 19.168.1.100:5000

In this example, the local IP of the connected client is 19.168.1.100.

— Reply to this email directly, view it on GitHub https://github.com/XTLS/Xray-core/issues/3054#issuecomment-1964309328, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQRGDFHRESLSPP76MQTONATYVSNMRAVCNFSM6AAAAABDZENG5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRUGMYDSMZSHA . You are receiving this because you authored the thread.Message ID: @.***>

jamiekarvans avatar Feb 26 '24 15:02 jamiekarvans

There is no information about the local ip, it just sends data from all the users to 172.16.1.1 How can I find the local ip of each connectwd device?

On Mon, Feb 26, 2024, 6:12 PM us254 @.***> wrote:

the logs of the V2Ray server, which include information about the connected clients, including their local IPs. Look for lines in the logs that contain the "inbound" tag, as these lines indicate a new connection from a client. The local IP of the client will be listed next to the "LocalAddr" tag. Here's an example of what you might see in the logs:

2022-08-10 12:34:56 +0800 CST m=+1234.569: [inbound] new connection from 19.168.1.100:5000

In this example, the local IP of the connected client is 19.168.1.100.

— Reply to this email directly, view it on GitHub https://github.com/XTLS/Xray-core/issues/3054#issuecomment-1964309328, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQRGDFHRESLSPP76MQTONATYVSNMRAVCNFSM6AAAAABDZENG5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRUGMYDSMZSHA . You are receiving this because you authored the thread.Message ID: @.***>

jamiekarvans avatar Feb 27 '24 05:02 jamiekarvans

Answered. 内网信息在客户端上有

yuhan6665 avatar Mar 07 '24 00:03 yuhan6665