Tom Impelluso wrote:
>
> I normally run network codes from my university (where there is no ISP
> intermdiary - or is there?)
>
> But from home, I have this intermediary of cox.net; and this confuses me.
>
> And I feel like a child re-learing things as I try to do more from home.
>
> At home, on my PC, I type ipconfig.
> And I get 192.168.1.104
>
> So would imagine that that cannot be my IP address (but what is it?)
> (And, what is it in the context of me working at school on a UNIX machine
> and going to /etc/hosts and seeing each machine with an IP address?)
>
> From home, when I go to whatismyip.com, I get: 68.167.43.161
> However, ALL the laptops in my home have 68.167.43.161
> So where is the unique number here?
>
> I have logged into my router and THOUGHT I was accessing the port
> forwarding calls properly.
>
> But now I am not so sure...
>
> So... In a nutshell:
>
> 1. What is it about my university that, when I run a code as a server
> and decide it will accept connections on a a port above 6000 (socket,
> bind, listen, accept, socket, connect)... done... over... easy... never had
> a problem.
>
> 2. What is it about cox that I have this intermediary... and how can I
> find out what port is the one for my current laptop.
>
> I can connect to my router and forward the ports...
>
> But could someone please take the time to frame what is happening?
>
> (I know my IP cannot be 192.168.1.104 .... but what IS that number
> specific for? Cox? Linksys (and only Linksys) routers? all routers?
>
>
I cannot answer all your question, but:
68.167.43.161 is the IP adress of your linksys modem/router given by
your ISP.
192.168.1.104 is the IP adresse of your pc given by the DHCP of your
linksys modem/router.
To permit you running network code at home, it could be that you should
position routing in your linksys modem/router attribuating the port
number xxx to the ip adress 192.168.1.104 - so the code try to work with
68.167.43.161 in fact work for 192.168.1.104 (other pc on your home did
not have the same (192.168.1.104) IP adress so there is only your pc
that could run the network code.
|