N
nooneinparticular314159
I am writing a simulation which needs to maintain a table that maps
host names to IP addresses. Because I will be connecting to simulated
hosts, the hostnames do not exist in DNS. I will, however, be
connecting to real hosts. I need a way to create a ServerSocket that
connects to my choice of IP address. But ServerSocket only takes
InetAddress objects, and those don't provide a way to set the IP
address. Is there a way to do this?
Thanks,
Michael
host names to IP addresses. Because I will be connecting to simulated
hosts, the hostnames do not exist in DNS. I will, however, be
connecting to real hosts. I need a way to create a ServerSocket that
connects to my choice of IP address. But ServerSocket only takes
InetAddress objects, and those don't provide a way to set the IP
address. Is there a way to do this?
Thanks,
Michael