Hack Forums
[.NET] Extract IP address and port number from website source code. - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Extract IP address and port number from website source code. (/showthread.php?tid=6036385)



Extract IP address and port number from website source code. - Takehito Morokuzu - Dec 28, 2019

Hey,
I am trying to automate adding a China proxy into Netease Music, so that global people can access it.
I can extract the IP address using Regex but not sure how to get the port number.
You can see it here: view-source:https://www.proxynova.com/proxy-server-list/country-cn/
I tried free-proxy.cz but it gives me a 403 forbidden error if I try to download the source code.

Here is the code:
Spoiler (Click to View)


RE: Extract IP address and port number from website source code. - Charger - Dec 28, 2019

Because you’re getting blocked by their firewall. Send headers and other stuff


RE: Extract IP address and port number from website source code. - Takehito Morokuzu - Dec 28, 2019

(Dec 28, 2019 03:39 PM)Charger Wrote:  Because you’re getting blocked by their firewall. Send headers and other stuff

Then I get 401 unauthorised.

Also is there a way to get the port from the other page I mentioned?