Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to find out the port number of my computer to which my ISP actually connects & provides the internet service, given my ADSL modem is operating in Bridge Mode instead of PPPoE. I initially wanted to find out others users' port numbers, but I thought first I'd find out my own.

I'm on a windows machine, so I used the command netstat -a -b -n but could not figure out the port id. I suppose if there IS such a port number, there must be some sort of internal port forwarding being done. So then how do I find out my port id?

Edit: Basically my question is, How does the ISP send data packets to a computer..I ask this since I had figured out a way to impersonate someone using his MAC address and session id (my ISP is BSNL). So there could also be a way of hijacking someone's connection & breaking into his system. That depends a lot on how ISPs actually send data to different clients.

share|improve this question

closed as off topic by Jason Berg, Shane Madden, Ben Pilbrow, jscott, Iain Aug 30 '11 at 20:48

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Are you asking "Which physical port of the ISP's switch/router connects to my modem?" – jscott Aug 30 '11 at 20:41
You misunderstood what a port means. The answer is that you're thinking about it the wrong way, because for PPPoE those "ports" you talk of are simply content it carries, between your device and your ISP's, without caring about what they mean. Other programs builtin to your OS are implementing the "logical gateways" that we call "ports". Programs you can call TCP and UDP implementations. From PPPoE the content what means "which port number" is passed to them. – n611x007 Jan 6 '15 at 9:55
off: I think others downvoted your question because they can't or dont want to tolerate wrong understanding of terms. This is because to learn all this they did a lot of work which took a lot of time. They are set out to help but repeating the same answers to various people have already took too much time of their lifes and they are irritated sometimes without realizing it. Thus questions like these were decided to be off-topic here. Better to ask on – n611x007 Jan 6 '15 at 10:03
off (continued): I could see from your question that your knowledge of "ports" may come from activity "port forwarding". No worries, if you ask me. The term "port" is used in end-user products like your router. But it is rarely actually defined clearly if at all at this knowledge level. Thus people are faced to work with it without the required extract from the underlying knowledge. It is pretty rational behaviour from you that leads to misunderstanding it. Unless you are extremely careful, of course. I wish I could give you a good link but I am not aware of one. – n611x007 Jan 6 '15 at 10:17
up vote 4 down vote accepted

I think you are searching on the wrong OSI-Layer. When it is bridged, your PC does PPPoE, and as the name says it is over Ethernet, not over TCP/UDP. So there are no port numbers.

Just have a look at the OSI-Modell on the right side of the wikipedia article:

share|improve this answer
Why arent there port numbers? after all, ports are logical gateways into a computer..and if there is no port number, then can you explain how do I receive data from my ISP? Assuming ports are involved, does my router forward packets to different ports of my comp, or does it forward traffic only to 1 port, & from there the packets go to different ports (for diff. applications) ?? – Rushil Aug 30 '11 at 20:34
you should really read some literature about network-layers if you want to understand it further. every paket can be wrapped into a packet of the layer under the current layer. so your tcp packet is put into an ip packet, which is send by your pc via PPPoE to the provider, which unpacks it from the PPPoE frame and forwards the ip-packet, again using a packet/frame of a layer under ip. – allo Aug 30 '11 at 20:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.