Port help needed

Associate
Joined
25 Aug 2022
Posts
48
Location
hants
Good morning,
Hope someone can help me. I have been trying to find a way of discovering my port number that my IP address uses. I've seen on proxies things like 123.2.23.343:1234
and wondered if it was possible for me to find this information for my local set up?
 
It doesn't quite work like that, each service on the TCP or UDP protocols can use one or more ports, so for example, if you were hosting a webserver using HTTPS, that would, as standard be on port 443, so would be written as your IP address:443.

So your IP address does not use a port number per say, different services hosted from it will though and as you may realise this is also a way to host multiple services from a single IP. Now to expand on this a bit further, unless you are actually hosting any services yourself, then this isn't going to be much of a factor in anything as there are both local and remote ports. The specified port number, such as https on port 443 or http on port 80, FTP on 20 & 21 etc all refer to the remote port, the port that ends up being assigned locally when you connect as a client as a rule does not matter. Generally as a client (i.e. the consumer of the service) it wont matter much, unless you are setting up a default deny firewall ruleset for outbound connections at least.

If you are running a local media server on your home network, which could well be something you are doing, there will be a port specified for that, but the software you are using to run it will tell you what that is as you should be able to change it if you like.

I could give you some pointers on using netstat to look at local listening ports etc but to be honest I think that's beyond the scope here as I don't think you really quite understand what you are asking about here so that's probably not especially helpful to you. If you do have something specific in mind though by all means ask.
 
It doesn't quite work like that, each service on the TCP or UDP protocols can use one or more ports, so for example, if you were hosting a webserver using HTTPS, that would, as standard be on port 443, so would be written as your IP address:443.

So your IP address does not use a port number per say, different services hosted from it will though and as you may realise this is also a way to host multiple services from a single IP. Now to expand on this a bit further, unless you are actually hosting any services yourself, then this isn't going to be much of a factor in anything as there are both local and remote ports. The specified port number, such as https on port 443 or http on port 80, FTP on 20 & 21 etc all refer to the remote port, the port that ends up being assigned locally when you connect as a client as a rule does not matter. Generally as a client (i.e. the consumer of the service) it wont matter much, unless you are setting up a default deny firewall ruleset for outbound connections at least.

If you are running a local media server on your home network, which could well be something you are doing, there will be a port specified for that, but the software you are using to run it will tell you what that is as you should be able to change it if you like.

I could give you some pointers on using netstat to look at local listening ports etc but to be honest I think that's beyond the scope here as I don't think you really quite understand what you are asking about here so that's probably not especially helpful to you. If you do have something specific in mind though by all means ask.
Thanks for such a prompt and comprehensive reply. Basically, I log in to a particular payment site several times a day from different IP addresses. It's causing a lot of security challenges and I wondered if I could use my own IP (and port) as a proxy so that to all intentse and purposes my own IP is the one that is logging in to said payment browser.
 
Thanks for such a prompt and comprehensive reply. Basically, I log in to a particular payment site several times a day from different IP addresses. It's causing a lot of security challenges and I wondered if I could use my own IP (and port) as a proxy so that to all intentse and purposes my own IP is the one that is logging in to said payment browser.
Sounds like a VPN or proxy is what you need - that has more to do with the IP address routing itself than the ports used :)
 
Hmm ok, there are a couple of ways to handle this but I think the easiest one for you would just be a VPN service with a private static IP such as https://nordvpn.com/features/dedicated-ip/ ...I am not advocating Nord VPN here I just happen to know they offer this, I think they are fairly well thought of but I haven't used them myself so really can't comment.
 
Hmm ok, there are a couple of ways to handle this but I think the easiest one for you would just be a VPN service with a private static IP such as https://nordvpn.com/features/dedicated-ip/ ...I am not advocating Nord VPN here I just happen to know they offer this, I think they are fairly well thought of but I haven't used them myself so really can't comment.
Yeah, I've used Nord VPN a few times but never for that.... my understanding is that VPN's are blocked on payment site. Sorry, this isn't meant to sound dodgy by the way!!! I didn't know if it was possible to use my own local credentials as a proxy.
 
Well Nord VPN's standard IP range which many users will share will likely be blocked yes, but the IP's they use for dedicated IP clients 'probably' are not, I don't know though tbh.

It's possible to use your home IP yes, but you would have to build a VPN yourself, connect to it and then your outbound connection would appear to come from your home IP, running your own VPN is a bit involved though, not really sure what easier options there may be as the way I would do this is via Open VPN on a Linux box. You may be able to do this in Azure or AWS aswell, weather or not you could just add it as service and go I'm not sure though, I would imagine it would require a bit more than just that.
 
Well Nord VPN's standard IP range which many users will share will likely be blocked yes, but the IP's they use for dedicated IP clients 'probably' are not, I don't know though tbh.

It's possible to use your home IP yes, but you would have to build a VPN yourself, connect to it and then your outbound connection would appear to come from your home IP, running your own VPN is a bit involved though, not really sure what easier options there may be as the way I would do this is via Open VPN on a Linux box. You may be able to do this in Azure or AWS aswell, weather or not you could just add it as service and go I'm not sure though, I would imagine it would require a bit more than just that.
Asus routers have a built in VPN function, I'm sure others will as well. I was surprised how easy it was to set up!

I just use it to access some local PCs on the occasions I'm in the office but need their particular resources.
 
Asus routers have a built in VPN function, I'm sure others will as well. I was surprised how easy it was to set up!

I just use it to access some local PCs on the occasions I'm in the office but need their particular resources.
Would you be able to tell me if the VPN would provide details such as IP Address : Port that I can then replicate elsewhere? I log on from different servers - some are in Europe, others the US and so on. It's this switching of IP's that cause the security issues
 
Would you be able to tell me if the VPN would provide details such as IP Address : Port that I can then replicate elsewhere? I log on from different servers - some are in Europe, others the US and so on. It's this switching of IP's that cause the security issues
Again that's not how it works. In this case, the VPN is something you host from your home. You can connect to it from anywhere in the world, and if you do, then your traffic looks like it's coming from that location (home IP address). You won't get any choice or settings for IP address - it will only be able to make it look like you're at home. Which is presumably the goal?

Imagine sending something to a friend in Edinburgh who then posts it on for you, so the postmark on the letter says Edinburgh. The recipient will assume your letter came from Edinburgh even though you're sat elsewhere.
 
And another thing, forget about ports. That's for an entirely different use case and won't effect the security challenges you're getting with the payment site. It's mainly due to the IP address being different especially if it's from a different country which can trigger the security challenges.

The self hosted VPN will make it look like you're logging in from home, since your home IP usually stays the same, unless you reboot the router often and your ISP recycles the IP very quickly to another user.

Is this for work reasons? Are you remoting into different servers from different locations, on the same payment site with the same account? Are you physically going to these servers or remoting in from one location?
 
And another thing, forget about ports. That's for an entirely different use case and won't effect the security challenges you're getting with the payment site. It's mainly due to the IP address being different especially if it's from a different country which can trigger the security challenges.

The self hosted VPN will make it look like you're logging in from home, since your home IP usually stays the same, unless you reboot the router often and your ISP recycles the IP very quickly to another user.

Is this for work reasons? Are you remoting into different servers from different locations, on the same payment site with the same account? Are you physically going to these servers or remoting in from one location?
Yes for work reasons. I remote in to the servers via Microsoft Remote Desktop
 
Do you have to log into the payment site from each remote location with the same account? Wouldn't it be easier to just use one location, such as the PC you use to remote to the other servers?
That would be easier for sure but it's not an option. I have to use the payment window on the server. That's why I was wondering if there was a way to simulate my own IP address on each server.
 
Back
Top Bottom